diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-02-01 22:12:23 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-02-01 22:12:23 +0000 |
commit | e48261080a16b0bb3565e36cd04f39a274cd35fe (patch) | |
tree | fa9c53d6677d1475d389eddcef1911965c06dfa2 /nslcd/util.h | |
parent | 9a13334e275ffa7ed0644d8a8b614b33adf34a86 (diff) |
declare old dict functions static as thay are only used from within util.c
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@233 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/util.h')
-rw-r--r-- | nslcd/util.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/nslcd/util.h b/nslcd/util.h index b64ee20..18cf06a 100644 --- a/nslcd/util.h +++ b/nslcd/util.h @@ -43,46 +43,10 @@ enum nss_status _nss_ldap_dn2uid (const char *dn, char **uid, char **buf, size_t * len, int *pIsNestedGroup, LDAPMessage ** pRes); - /* * Escape '*' in a string for use as a filter */ int _nss_ldap_escape_string(const char *str,char *buf,size_t buflen); -/* Dictionary functions. */ - -struct ldap_datum -{ - void *data; - size_t size; -}; - -#define NSS_LDAP_DATUM_ZERO(d) do { \ - (d)->data = NULL; \ - (d)->size = 0; \ - } while (0) - -#define NSS_LDAP_DB_NORMALIZE_CASE 0x1 - -struct ldap_dictionary -{ - struct ldap_datum key; - struct ldap_datum value; - struct ldap_dictionary *next; -}; - -struct ldap_dictionary *old_dict_new(void); -enum nss_status old_dict_put(struct ldap_dictionary *db, - unsigned flags, - const struct ldap_datum *key, - const struct ldap_datum *value); -enum nss_status old_dict_get(struct ldap_dictionary *db, - unsigned flags, - const struct ldap_datum *key, - struct ldap_datum *value); - - - - #endif /* _LDAP_NSS_LDAP_UTIL_H */ |