Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/ldap-hosts.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-10-12 13:01:56 +0200
committerArthur de Jong <arthur@arthurdejong.org>2006-10-12 13:01:56 +0200
commitdba09bb1389491f82beb862323a5ccab428a7f2d (patch)
treee617b84715ab650b6cd162876f7ff6d0b897a05a /ldap-hosts.h
parent54845e6fb6d0fa0f7f77b4a7d8520897e0e98496 (diff)
first round of cleanups, all non-glibc NSS stuff has been removed, because we are going to do some major restructuring it will not likely remain valid anyway and we can always re-add it later
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@10 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'ldap-hosts.h')
-rw-r--r--ldap-hosts.h32
1 files changed, 6 insertions, 26 deletions
diff --git a/ldap-hosts.h b/ldap-hosts.h
index 3e283f5..f0a2889 100644
--- a/ldap-hosts.h
+++ b/ldap-hosts.h
@@ -1,4 +1,5 @@
-/* Copyright (C) 1997-2005 Luke Howard.
+/*
+ Copyright (C) 1997-2005 Luke Howard
This file is part of the nss_ldap library.
Contributed by Luke Howard, <lukeh@padl.com>, 1997.
@@ -16,7 +17,9 @@
License along with the nss_ldap library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
- */
+
+ $Id$
+*/
#ifndef _LDAP_NSS_LDAP_LDAP_HOSTS_H
#define _LDAP_NSS_LDAP_LDAP_HOSTS_H
@@ -28,32 +31,9 @@
*
*/
-
-#if defined(HAVE_NSSWITCH_H) || defined(DL_NSS)
-/* XXX Fixme */
-#ifndef INADDRSZ
-#define INADDRSZ (sizeof(u_long))
-#endif
-#endif
-
-
-static NSS_STATUS _nss_ldap_parse_host (LDAPMessage * e,
+static enum nss_status _nss_ldap_parse_host (LDAPMessage * e,
ldap_state_t * pvt,
void *result,
char *buffer, size_t buflen, int af);
-#ifdef HAVE_NSSWITCH_H
-static NSS_STATUS _nss_ldap_gethostbyname_r (nss_backend_t * be,
- void *fakeargs);
-static NSS_STATUS _nss_ldap_gethostbyaddr_r (nss_backend_t * be,
- void *fakeargs);
-static NSS_STATUS _nss_ldap_gethostent_r (nss_backend_t * be, void *fakeargs);
-static NSS_STATUS _nss_ldap_sethostent_r (nss_backend_t * be, void *fakeargs);
-static NSS_STATUS _nss_ldap_endhostent_r (nss_backend_t * be, void *fakeargs);
-
-nss_backend_t *_nss_ldap_hosts_constr (const char *db_name,
- const char *src_name,
- const char *cfg_args);
-#endif
-
#endif /* _LDAP_NSS_LDAP_LDAP_HOSTS_H */