]> git.sur5r.net Git - openldap/blob - include/lber_pvt.h
Only set URANDOM_DEVICE if undefined
[openldap] / include / lber_pvt.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted only
7  * as authorized by the OpenLDAP Public License.  A copy of this
8  * license is available at http://www.OpenLDAP.org/license.html or
9  * in file LICENSE in the top-level directory of the distribution.
10  */
11 /*
12  * lber_pvt.h - Header for ber_pvt_ functions. These are meant to be used
13  *              by the OpenLDAP distribution only.
14  */
15
16 #ifndef _LBER_PVT_H
17 #define _LBER_PVT_H 1
18
19 #include <lber.h>
20
21 LDAP_BEGIN_DECL
22
23 typedef struct sockbuf_buf {
24         ber_len_t               buf_size;
25         ber_len_t               buf_ptr;
26         ber_len_t               buf_end;
27         char                    *buf_base;
28 } Sockbuf_Buf;
29
30 /*
31  * bprint.c
32  */
33 LBER_F( BER_LOG_PRINT_FN ) ber_pvt_log_print;
34
35 LBER_F( int )
36 ber_pvt_log_printf LDAP_P((
37         int errlvl,
38         int loglvl,
39         const char *fmt,
40         ... )) LDAP_GCCATTR((format(printf, 3, 4)));
41
42 /*
43  * sockbuf.c
44  */
45 LBER_F( ber_slen_t )
46 ber_pvt_sb_do_write LDAP_P(( Sockbuf_IO_Desc *sbiod, Sockbuf_Buf *buf_out ));
47
48 LBER_F( void )
49 ber_pvt_sb_buf_init LDAP_P(( Sockbuf_Buf *buf ));
50
51 LBER_F( void )
52 ber_pvt_sb_buf_destroy LDAP_P(( Sockbuf_Buf *buf ));
53
54 LBER_F( int )
55 ber_pvt_sb_grow_buffer LDAP_P(( Sockbuf_Buf *buf, ber_len_t minsize ));
56
57 LBER_F( ber_len_t )
58 ber_pvt_sb_copy_out LDAP_P(( Sockbuf_Buf *sbb, char *buf, ber_len_t len ));
59
60 LBER_F( int )
61 ber_pvt_socket_set_nonblock LDAP_P(( ber_socket_t sd, int nb ));
62
63 LDAP_END_DECL
64
65 #endif
66