diff options
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index e6f9b4a7..a7d3e7ea 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -169,9 +169,15 @@ #define SYSDB_MOD_REP LDB_FLAG_MOD_REPLACE struct confdb_ctx; -struct sysdb_ctx_list; struct sysdb_ctx; +struct sysdb_ctx_list { + struct sysdb_ctx **dbs; + size_t num_dbs; + + char *db_path; +}; + struct sysdb_attrs { int num; struct ldb_message_element *a; @@ -282,6 +288,11 @@ int sysdb_domain_init(TALLOC_CTX *mem_ctx, const char *db_path, struct sysdb_ctx **_ctx); +int sysdb_list_init(TALLOC_CTX *mem_ctx, + const char *path, + struct sysdb_ctx *ctx, + struct sysdb_ctx_list **_list); + int sysdb_get_ctx_from_list(struct sysdb_ctx_list *ctx_list, struct sss_domain_info *domain, struct sysdb_ctx **_ctx); |