From f74f7c933db6c981661ce5fc8666b87ad7ef41cc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 18 Apr 2005 16:07:49 +0000 Subject: r6367: Slim down pdb_interface.c a bit. next_entry and search_end are function pointers now. Yes, Jeremy, this is about re-inventing C++... :-) Volker (This used to be commit a831e54738c7854e68c696e9cbb132c012ff223c) --- source3/include/passdb.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'source3/include') diff --git a/source3/include/passdb.h b/source3/include/passdb.h index 0c816271b0..9a3dd9c8d3 100644 --- a/source3/include/passdb.h +++ b/source3/include/passdb.h @@ -254,6 +254,9 @@ struct pdb_search { ssize_t cache_size; BOOL search_ended; void *private; + BOOL (*next_entry)(struct pdb_search *search, + struct samr_displayentry *entry); + void (*search_end)(struct pdb_search *search); }; /***************************************************************** @@ -378,11 +381,6 @@ typedef struct pdb_context BOOL (*pdb_search_aliases)(struct pdb_context *context, struct pdb_search *search, const DOM_SID *sid); - BOOL (*pdb_search_next_entry)(struct pdb_context *context, - struct pdb_search *search, - struct samr_displayentry *entry); - void (*pdb_search_end)(struct pdb_context *context, - struct pdb_search *search); void (*free_fn)(struct pdb_context **); @@ -496,11 +494,6 @@ typedef struct pdb_methods BOOL (*search_aliases)(struct pdb_methods *methods, struct pdb_search *search, const DOM_SID *sid); - BOOL (*search_next_entry)(struct pdb_methods *methods, - struct pdb_search *search, - struct samr_displayentry *entry); - void (*search_end)(struct pdb_methods *methods, - struct pdb_search *search); void *private_data; /* Private data of some kind */ -- cgit