]> git.sur5r.net Git - openldap/blob - include/ldap_pvt.h
Preliminary Make rules to allow building backends as modules.
[openldap] / include / ldap_pvt.h
1 /*
2  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted only
6  * as authorized by the OpenLDAP Public License.  A copy of this
7  * license is available at http://www.OpenLDAP.org/license.html or
8  * in file LICENSE in the top-level directory of the distribution.
9  */
10 /*
11  * ldap-pvt.h - Header for ldap_pvt_ functions. These are meant to be used
12  *              by the OpenLDAP distribution only.
13  */
14
15 #ifndef _LDAP_PVT_H
16 #define _LDAP_PVT_H 1
17
18 #include <ldap_cdefs.h>
19
20 LDAP_BEGIN_DECL
21
22 struct hostent; /* avoid pulling in <netdb.h> */
23
24 LDAP_F( char * )
25 ldap_pvt_ctime LDAP_P((
26         const time_t *tp,
27         char *buf ));
28
29 LDAP_F( int )
30 ldap_pvt_gethostbyname_a LDAP_P((
31         const char *name, 
32         struct hostent *resbuf,
33         char **buf,
34         struct hostent **result,
35         int *herrno_ptr ));
36
37 LDAP_F( int )
38 ldap_pvt_gethostbyaddr_a LDAP_P((
39         const char *addr,
40         int len,
41         int type,
42         struct hostent *resbuf,
43         char **buf,
44         struct hostent **result,
45         int *herrno_ptr ));
46
47
48 /* charray.c */
49
50 LDAP_F( int )
51 ldap_charray_add LDAP_P((
52     char        ***a,
53     char        *s ));
54
55 LDAP_F( int )
56 ldap_charray_merge LDAP_P((
57     char        ***a,
58     char        **s ));
59
60 LDAP_F( void )
61 ldap_charray_free LDAP_P(( char **a ));
62
63 LDAP_F( int )
64 ldap_charray_inlist LDAP_P((
65     char        **a,
66     char        *s ));
67
68 LDAP_F( char ** )
69 ldap_charray_dup LDAP_P(( char **a ));
70
71 LDAP_F( char ** )
72 ldap_str2charray LDAP_P((
73         char *str,
74         char *brkstr ));
75
76 /* url.c */
77 void ldap_pvt_hex_unescape LDAP_P(( char *s ));
78 int ldap_pvt_unhex( int c );
79
80 LDAP_END_DECL
81
82 #endif
83