diff options
author | Volker Lendecke <vl@samba.org> | 2010-04-06 22:10:22 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-04-19 14:27:16 +0200 |
commit | f2a04a0ccb7276dcd23efeade59368540c6570b2 (patch) | |
tree | f9111fc59545f07df81cf68a332714251aa069a8 /nsswitch/libwbclient/wbclient_internal.h | |
parent | 456351cdb184f59374cecec8d7c44add29b986dd (diff) | |
download | samba-f2a04a0ccb7276dcd23efeade59368540c6570b2.tar.gz samba-f2a04a0ccb7276dcd23efeade59368540c6570b2.tar.bz2 samba-f2a04a0ccb7276dcd23efeade59368540c6570b2.zip |
libwbclient: Add wbcAllocateMemory()
This prepares for removing libwbclient's talloc dependency. It is a
non-hierarchical "talloc-lite" that has destructors. It is necessary because we
have the catch-call wbcFreeMemory call. Individual wbcFreeXXX calls for the
different structures wbclient returns would have made this easier, but
wbcFreeMemory is the API we have to live with.
Diffstat (limited to 'nsswitch/libwbclient/wbclient_internal.h')
-rw-r--r-- | nsswitch/libwbclient/wbclient_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wbclient_internal.h b/nsswitch/libwbclient/wbclient_internal.h index 5ce820785e..6c59be3fef 100644 --- a/nsswitch/libwbclient/wbclient_internal.h +++ b/nsswitch/libwbclient/wbclient_internal.h @@ -32,4 +32,7 @@ wbcErr wbcRequestResponsePriv(int cmd, struct winbindd_request *request, struct winbindd_response *response); +void *wbcAllocateMemory(size_t nelem, size_t elsize, + void (*destructor)(void *ptr)); + #endif /* _WBCLIENT_INTERNAL_H */ |