3 * function prototypes for lber library
12 #define LDAPFUNCDECL __declspec( dllexport )
16 #endif /* LDAPFUNCDECL */
21 LDAPFUNCDECL void lber_bprint( char *data, int len );
26 LDAPFUNCDECL unsigned long ber_get_tag( BerElement *ber );
27 LDAPFUNCDECL unsigned long ber_skip_tag( BerElement *ber, unsigned long *len );
28 LDAPFUNCDECL unsigned long ber_peek_tag( BerElement *ber, unsigned long *len );
29 LDAPFUNCDECL unsigned long ber_get_int( BerElement *ber, long *num );
30 LDAPFUNCDECL unsigned long ber_get_stringb( BerElement *ber, char *buf,
32 LDAPFUNCDECL unsigned long ber_get_stringa( BerElement *ber, char **buf );
33 LDAPFUNCDECL unsigned long ber_get_stringal( BerElement *ber, struct berval **bv );
34 LDAPFUNCDECL unsigned long ber_get_bitstringa( BerElement *ber, char **buf,
36 LDAPFUNCDECL unsigned long ber_get_null( BerElement *ber );
37 LDAPFUNCDECL unsigned long ber_get_boolean( BerElement *ber, int *boolval );
38 LDAPFUNCDECL unsigned long ber_first_element( BerElement *ber, unsigned long *len,
40 LDAPFUNCDECL unsigned long ber_next_element( BerElement *ber, unsigned long *len,
42 #if defined( MACOS ) || defined( BC31 ) || defined( _WIN32 )
43 LDAPFUNCDECL unsigned long ber_scanf( BerElement *ber, char *fmt, ... );
45 LDAPFUNCDECL unsigned long ber_scanf();
47 LDAPFUNCDECL void ber_bvfree( struct berval *bv );
48 LDAPFUNCDECL void ber_bvecfree( struct berval **bv );
49 LDAPFUNCDECL struct berval *ber_bvdup( struct berval *bv );
50 #ifdef STR_TRANSLATION
51 LDAPFUNCDECL void ber_set_string_translators( BerElement *ber,
52 BERTranslateProc encode_proc, BERTranslateProc decode_proc );
53 #endif /* STR_TRANSLATION */
58 LDAPFUNCDECL int ber_put_enum( BerElement *ber, long num, unsigned long tag );
59 LDAPFUNCDECL int ber_put_int( BerElement *ber, long num, unsigned long tag );
60 LDAPFUNCDECL int ber_put_ostring( BerElement *ber, char *str, unsigned long len,
62 LDAPFUNCDECL int ber_put_string( BerElement *ber, char *str, unsigned long tag );
63 LDAPFUNCDECL int ber_put_bitstring( BerElement *ber, char *str,
64 unsigned long bitlen, unsigned long tag );
65 LDAPFUNCDECL int ber_put_null( BerElement *ber, unsigned long tag );
66 LDAPFUNCDECL int ber_put_boolean( BerElement *ber, int boolval,
68 LDAPFUNCDECL int ber_start_seq( BerElement *ber, unsigned long tag );
69 LDAPFUNCDECL int ber_start_set( BerElement *ber, unsigned long tag );
70 LDAPFUNCDECL int ber_put_seq( BerElement *ber );
71 LDAPFUNCDECL int ber_put_set( BerElement *ber );
72 #if defined( MACOS ) || defined( BC31 ) || defined( _WIN32 )
73 LDAPFUNCDECL int ber_printf( BerElement *ber, char *fmt, ... );
75 LDAPFUNCDECL int ber_printf();
81 LDAPFUNCDECL long ber_read( BerElement *ber, char *buf, unsigned long len );
82 LDAPFUNCDECL long ber_write( BerElement *ber, char *buf, unsigned long len,
84 LDAPFUNCDECL void ber_free( BerElement *ber, int freebuf );
85 LDAPFUNCDECL int ber_flush( Sockbuf *sb, BerElement *ber, int freeit );
86 LDAPFUNCDECL BerElement *ber_alloc( void );
87 LDAPFUNCDECL BerElement *der_alloc( void );
88 LDAPFUNCDECL BerElement *ber_alloc_t( int options );
89 LDAPFUNCDECL BerElement *ber_dup( BerElement *ber );
90 LDAPFUNCDECL void ber_dump( BerElement *ber, int inout );
91 LDAPFUNCDECL void ber_sos_dump( Seqorset *sos );
92 LDAPFUNCDECL unsigned long ber_get_next( Sockbuf *sb, unsigned long *len,
94 LDAPFUNCDECL void ber_init( BerElement *ber, int options );
95 LDAPFUNCDECL void ber_reset( BerElement *ber, int was_writing );
101 int getopt( int nargc, char **nargv, char *ostr );
102 #endif /* NEEDGETOPT */