diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-11-03 13:37:29 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-11-03 13:37:29 +0100 |
commit | 52e474972326746f352cec15dc59cf08f2db0347 (patch) | |
tree | 45865b3efbf2f03c9ca472dc2e31b18d15629200 /nslcd.h | |
parent | d90fbdea1d9c3b450c72f68bc604a93dfe5a9ec0 (diff) |
rename LOOP to STRINGLIST as that is currently the only supported format
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@64 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd.h')
-rw-r--r-- | nslcd.h | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -46,8 +46,8 @@ TYPE - a typed field that is transferred using sizeof() STRING - a string length (32bit) followed by the string value (not null-terminted) - LOOP - a 32-bit number noting the number of entries followed by the - entries one at a time + STRINGLIST - a 32-bit number noting the number of strings followed by the + strings one at a time Compound datatypes (such as PASSWD) are defined below as a combination of the above types. They are defined as macros so they can be expanded to code @@ -62,9 +62,7 @@ /* used for transferring alias information */ #define LDF_ALIAS \ LDF_STRING(ALIAS_NAME) \ - LDF_LOOP( \ - LDF_STRING(ALIAS_RCPT) \ - ) + LDF_STRINGLIST(ALIAS_RCPTS) /* AUTOMOUNT - TBD */ @@ -77,9 +75,7 @@ LDF_STRING(GROUP_NAME) \ LDF_STRING(GROUP_PASSWD) \ LDF_TYPE(GROUP_GID,gid_t) \ - LDF_LOOP( \ - LDF_STRING(GROUP_MEMBER) \ - ) + LDF_STRINGLIST(GROUP_MEMBERS) /* HOSTS - TBD - gethostbyname - struct hostent - gethostbyaddr - struct in_addr */ @@ -102,9 +98,7 @@ /* for transferring struct rpcent structs */ #define LDF_RPC \ LDF_STRING(RPC_NAME) \ - LDF_LOOP( \ - LDF_STRING(RPC_ALIAS) \ - ) \ + LDF_STRINGLIST(RPC_ALIASES) \ LDF_TYPE(RPC_NUMBER,int32_t) /* SERVICES - TBD - getservbyname - struct servent */ |