Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'nss/common.h')
-rw-r--r--nss/common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/nss/common.h b/nss/common.h
index e7182de..c2d429b 100644
--- a/nss/common.h
+++ b/nss/common.h
@@ -24,12 +24,26 @@
#define NSS__COMMON_H 1
#include <stdio.h>
+#include <stdlib.h>
#include "nslcd.h"
#include "common/nslcd-prot.h"
#include "compat/attrs.h"
#include "compat/nss_compat.h"
+#ifdef HAVE_NSSWITCH_H
+#include "ldap-nss.h"
+#endif /* HAVE_NSSWITCH_H */
+
+#ifdef HAVE_NSSWITCH_H
+/* Adapted from PADL */
+/* Routines for managing namelists */
+nss_status_t _nss_ldap_namelist_push(struct name_list **head,const char *name);
+void _nss_ldap_namelist_pop(struct name_list **head);
+int _nss_ldap_namelist_find(struct name_list *head,const char *netgroup);
+void _nss_ldap_namelist_destroy(struct name_list **head);
+#endif /* HAVE_NSSWITCH_H */
+
/* These are macros for handling read and write problems, they are
NSS specific due to the return code so are defined here. They
genrally close the open file, set an error code and return with