Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-09-07 21:56:32 +0200
committerArthur de Jong <arthur@arthurdejong.org>2007-09-07 21:56:32 +0200
commit713ea31d96c92e666f9722e5a81836242d1048c3 (patch)
tree2bc2e326d702221e00ee3e7e05abcaf46d0597f5
parentbd239a779538572e1102c271284e827c9b710366 (diff)
remove struct ldap_args stuff
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@380 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--nslcd/ldap-nss.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/nslcd/ldap-nss.h b/nslcd/ldap-nss.h
index 5b5152c..7f89305 100644
--- a/nslcd/ldap-nss.h
+++ b/nslcd/ldap-nss.h
@@ -68,61 +68,6 @@
#define bytesleft(ptr, blen, TYPE) \
( (blen < alignof(TYPE)) ? 0 : (blen - alignof(TYPE) + 1))
-enum ldap_args_types
-{
- LA_TYPE_STRING,
- LA_TYPE_NUMBER,
- LA_TYPE_STRING_AND_STRING,
- LA_TYPE_NUMBER_AND_STRING,
- LA_TYPE_TRIPLE,
- LA_TYPE_STRING_LIST_OR
-};
-
-enum ldap_map_type
-{
- MAP_ATTRIBUTE = 0,
- MAP_OBJECTCLASS,
- MAP_MAX = MAP_OBJECTCLASS
-};
-
-struct ldap_args
-{
- enum ldap_args_types la_type;
- union
- {
- const char *la_string;
- long la_number;
- struct {
- /* for Solaris netgroup support */
- const char *host;
- const char *user;
- const char *domain;
- } la_triple;
- const char **la_string_list;
- }
- la_arg1;
- union
- {
- const char *la_string;
- }
- la_arg2;
- const char *la_base; /* override default base */
-};
-
-#define LA_INIT(q) do { \
- (q).la_type = LA_TYPE_STRING; \
- (q).la_arg1.la_string = NULL; \
- (q).la_arg2.la_string = NULL; \
- (q).la_base = NULL; \
- } while (0)
-#define LA_TYPE(q) ((q).la_type)
-#define LA_STRING(q) ((q).la_arg1.la_string)
-#define LA_NUMBER(q) ((q).la_arg1.la_number)
-#define LA_TRIPLE(q) ((q).la_arg1.la_triple)
-#define LA_STRING_LIST(q) ((q).la_arg1.la_string_list)
-#define LA_STRING2(q) ((q).la_arg2.la_string)
-#define LA_BASE(q) ((q).la_base)
-
/*
* the state consists of the desired attribute value or an offset into a list of
* values for the desired attribute. This is necessary to support services.