ntdb: allocator attribute.
[kai/samba-autobuild/.git] / lib / ntdb / private.h
index 01f2b45e9b81e645d7b2e359fba21d47f5a42ff3..ee8eeb76aff4247d048a3e0e39a46c17d7e446a0 100644 (file)
@@ -596,6 +596,12 @@ struct ntdb_context {
        void *hash_data;
        uint64_t hash_seed;
 
+       /* Allocate and free functions. */
+       void *(*alloc_fn)(const void *owner, size_t len, void *priv_data);
+       void *(*expand_fn)(void *old, size_t newlen, void *priv_data);
+       void (*free_fn)(void *old, void *priv_data);
+       void *alloc_data;
+
        /* Our open hook, if any. */
        enum NTDB_ERROR (*openhook)(int fd, void *data);
        void *openhook_data;