diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-02-28 17:12:34 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-04-12 09:22:13 -0400 |
commit | ace612f5998f619ba41828d2ba4b80d02a965162 (patch) | |
tree | 2de934a091c46e9aa1d2a065d1a9a163ccda300c /src/db/sysdb.h | |
parent | a6ecb562529430be5a4cd6e8cdd541a383c9a2e1 (diff) | |
download | sssd-ace612f5998f619ba41828d2ba4b80d02a965162.tar.gz sssd-ace612f5998f619ba41828d2ba4b80d02a965162.tar.xz sssd-ace612f5998f619ba41828d2ba4b80d02a965162.zip |
sysdb: convert sysdb_store/add(_basic)_group
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index 156dc0b83..6daad776d 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -433,22 +433,18 @@ int sysdb_add_user(TALLOC_CTX *mem_ctx, int cache_timeout); /* Add group (only basic attrs and w/o checks) */ -struct tevent_req *sysdb_add_basic_group_send(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, - struct sysdb_handle *handle, - struct sss_domain_info *domain, - const char *name, gid_t gid); -int sysdb_add_basic_group_recv(struct tevent_req *req); +int sysdb_add_basic_group(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *ctx, + struct sss_domain_info *domain, + const char *name, gid_t gid); /* Add group (all checks) */ -struct tevent_req *sysdb_add_group_send(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, - struct sysdb_handle *handle, - struct sss_domain_info *domain, - const char *name, gid_t gid, - struct sysdb_attrs *attrs, - int cache_timeout); -int sysdb_add_group_recv(struct tevent_req *req); +int sysdb_add_group(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *ctx, + struct sss_domain_info *domain, + const char *name, gid_t gid, + struct sysdb_attrs *attrs, + int cache_timeout); /* mod_op must be either LDB_FLAG_MOD_ADD or LDB_FLAG_MOD_DELETE */ struct tevent_req *sysdb_mod_group_member_send(TALLOC_CTX *mem_ctx, @@ -476,15 +472,13 @@ int sysdb_store_user(TALLOC_CTX *mem_ctx, struct sysdb_attrs *attrs, uint64_t cache_timeout); -struct tevent_req *sysdb_store_group_send(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, - struct sysdb_handle *handle, - struct sss_domain_info *domain, - const char *name, - gid_t gid, - struct sysdb_attrs *attrs, - uint64_t cache_timeout); -int sysdb_store_group_recv(struct tevent_req *req); +int sysdb_store_group(TALLOC_CTX *mem_ctx, + struct sysdb_ctx *ctx, + struct sss_domain_info *domain, + const char *name, + gid_t gid, + struct sysdb_attrs *attrs, + uint64_t cache_timeout); struct tevent_req *sysdb_add_group_member_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, |