diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-03-02 00:49:52 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-04-12 09:22:13 -0400 |
commit | 9def019030f844e429c067c7cca27ff99c921527 (patch) | |
tree | ba990dfeaf870743957b4b12490a5734a1c82f9c /src/db/sysdb.h | |
parent | bb0b6b4e39242577f60729fbcbd9e46e7a7af30d (diff) | |
download | sssd-9def019030f844e429c067c7cca27ff99c921527.tar.gz sssd-9def019030f844e429c067c7cca27ff99c921527.tar.bz2 sssd-9def019030f844e429c067c7cca27ff99c921527.zip |
sysdb: convert sysdb_search_custom
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index baa98904..4955ee2c 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -525,26 +525,23 @@ struct tevent_req *sysdb_store_custom_send(TALLOC_CTX *mem_ctx, struct sysdb_attrs *attrs); int sysdb_store_custom_recv(struct tevent_req *req); -struct tevent_req *sysdb_search_custom_send(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, - struct sysdb_ctx *sysdb, - struct sysdb_handle *handle, - struct sss_domain_info *domain, - const char *filter, - const char *subtree_name, - const char **attrs); -struct tevent_req *sysdb_search_custom_by_name_send(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, - struct sysdb_ctx *sysdb, - struct sysdb_handle *handle, - struct sss_domain_info *domain, - const char *object_name, - const char *subtree_name, - const char **attrs); -int sysdb_search_custom_recv(struct tevent_req *req, - TALLOC_CTX *mem_ctx, - size_t *msgs_count, - struct ldb_message ***msg); +int sysdb_search_custom(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, + const char *filter, + const char *subtree_name, + const char **attrs, + size_t *msgs_count, + struct ldb_message ***msgs); + +int sysdb_search_custom_by_name(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, + const char *object_name, + const char *subtree_name, + const char **attrs, + size_t *_count, + struct ldb_message ***_msgs); int sysdb_delete_custom(TALLOC_CTX *mem_ctx, struct sysdb_ctx *ctx, |