]> git.sur5r.net Git - openldap/blob - include/ldap_pvt.h
Vienna Bulk Commit
[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 LDAP_F( void )
48 ldap_pvt_init_utils LDAP_P(( void ));
49
50 LDAP_END_DECL
51
52 #endif
53