]> git.sur5r.net Git - openldap/blob - include/ldap_pvt.h
protect multi-statement macros... ie: do { s1; s2; } while(0)
[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 *ldap_pvt_ctime LDAP_P(( const time_t *tp, char *buf ));
25 LDAP_F int ldap_pvt_gethostbyname_a LDAP_P((
26         const char *name, 
27         struct hostent *resbuf,
28         char **buf,
29         struct hostent **result,
30         int *herrno_ptr ));
31 LDAP_F int ldap_pvt_gethostbyaddr_a LDAP_P((
32         const char *addr,
33         int len,
34         int type,
35         struct hostent *resbuf,
36         char **buf,
37         struct hostent **result,
38         int *herrno_ptr ));
39 LDAP_F void ldap_pvt_init_utils LDAP_P(( void ));
40
41 LDAP_END_DECL
42
43 #endif
44