diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-10-12 11:01:56 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-10-12 11:01:56 +0000 |
commit | dba09bb1389491f82beb862323a5ccab428a7f2d (patch) | |
tree | e617b84715ab650b6cd162876f7ff6d0b897a05a /ldap-ethers.h | |
parent | 54845e6fb6d0fa0f7f77b4a7d8520897e0e98496 (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-ethers.h')
-rw-r--r-- | ldap-ethers.h | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/ldap-ethers.h b/ldap-ethers.h index 150ac9f..329209d 100644 --- a/ldap-ethers.h +++ b/ldap-ethers.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. @@ -18,7 +19,7 @@ Boston, MA 02111-1307, USA. $Id$ - */ +*/ #ifndef _LDAP_NSS_LDAP_LDAP_ETHERS_H #define _LDAP_NSS_LDAP_LDAP_ETHERS_H @@ -42,32 +43,20 @@ struct ether struct ether_addr e_addr; }; -#if defined(HAVE_NSSWITCH_H) || defined(HAVE_NSS_H) -static NSS_STATUS _nss_ldap_parse_ether (LDAPMessage * e, +static enum nss_status _nss_ldap_parse_ether (LDAPMessage * e, ldap_state_t * pvt, void *result, char *buffer, size_t buflen); -#endif - -#ifdef HAVE_NSSWITCH_H -static NSS_STATUS _nss_ldap_gethostton_r (nss_backend_t * be, void *fakeargs); -static NSS_STATUS _nss_ldap_getntohost_r (nss_backend_t * be, void *fakeargs); -nss_backend_t *_nss_ldap_ethers_constr (const char *db_name, - const char *src_name, - const char *cfg_args); - -#elif defined(HAVE_NSS_H) /* for the record */ -NSS_STATUS _nss_ldap_gethostton_r (const char *name, struct ether *eth, +enum nss_status _nss_ldap_gethostton_r (const char *name, struct ether *eth, char *buffer, size_t buflen, int *errnop); -NSS_STATUS _nss_ldap_getntohost_r (struct ether_addr *addr, struct ether *eth, +enum nss_status _nss_ldap_getntohost_r (struct ether_addr *addr, struct ether *eth, char *buffer, size_t buflen, int *errnop); -NSS_STATUS _nss_ldap_endetherent (void); -NSS_STATUS _nss_ldap_setetherent (void); -NSS_STATUS _nss_ldap_getetherent_r (struct ether *result, char *buffer, +enum nss_status _nss_ldap_endetherent (void); +enum nss_status _nss_ldap_setetherent (void); +enum nss_status _nss_ldap_getetherent_r (struct ether *result, char *buffer, size_t buflen, int *errnop); -#endif #endif /* _LDAP_NSS_LDAP_LDAP_ETHERS_H */ |