summaryrefslogtreecommitdiff
path: root/src/db/sysdb.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-02-27 19:13:02 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-04-12 09:22:12 -0400
commit0995e4cc173577122bea5a1d4698262fd0e9c200 (patch)
treeeb55bc828d63bb01e7992495a6d0bf753a76030f /src/db/sysdb.h
parent79c090e8c25ac13454b9f12f4d6dc635029a0c9d (diff)
downloadsssd-0995e4cc173577122bea5a1d4698262fd0e9c200.tar.gz
sssd-0995e4cc173577122bea5a1d4698262fd0e9c200.tar.bz2
sssd-0995e4cc173577122bea5a1d4698262fd0e9c200.zip
sysdb: convert sysdb_search_entry and sysdb_delete_recursive
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r--src/db/sysdb.h29
1 files changed, 12 insertions, 17 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index e8637388..b7c53e1d 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -336,25 +336,20 @@ int sysdb_delete_entry(struct sysdb_ctx *ctx,
bool ignore_not_found);
-struct tevent_req *sysdb_delete_recursive_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct sysdb_handle *handle,
- struct ldb_dn *dn,
- bool ignore_not_found);
-int sysdb_delete_recursive_recv(struct tevent_req *req);
+int sysdb_delete_recursive(TALLOC_CTX *mem_ctx,
+ struct sysdb_ctx *ctx,
+ struct ldb_dn *dn,
+ bool ignore_not_found);
/* Search Entry */
-struct tevent_req *sysdb_search_entry_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct sysdb_handle *handle,
- struct ldb_dn *base_dn,
- int scope,
- const char *filter,
- const char **attrs);
-int sysdb_search_entry_recv(struct tevent_req *req,
- TALLOC_CTX *mem_ctx,
- size_t *msgs_size,
- struct ldb_message ***msgs);
+int sysdb_search_entry(TALLOC_CTX *mem_ctx,
+ struct sysdb_ctx *ctx,
+ struct ldb_dn *base_dn,
+ int scope,
+ const char *filter,
+ const char **attrs,
+ size_t *msgs_count,
+ struct ldb_message ***msgs);
/* Search User (by uid or name) */
struct tevent_req *sysdb_search_user_by_name_send(TALLOC_CTX *mem_ctx,