]> git.sur5r.net Git - openldap/blob - include/ldap_pvt.h
Updates for the new threading and utility stuff in libldap{_r}.
[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 struct hostent; /* avoid pulling in <netdb.h> */
19
20 extern char *ldap_pvt_strtok( char *str, const char *delim, char **pos );
21 extern char *ldap_pvt_ctime( const time_t *tp, char *buf );
22 extern int ldap_pvt_gethostbyname_a(
23         const char *name, 
24         struct hostent *resbuf,
25         char **buf,
26         struct hostent **result,
27         int *herrno_ptr );
28 extern int ldap_pvt_gethostbyaddr_a(
29         const char *addr,
30         int len,
31         int type,
32         struct hostent *resbuf,
33         char **buf,
34         struct hostent **result,
35         int *herrno_ptr );
36 extern void ldap_pvt_init_utils( void );
37 #endif
38