diff options
Diffstat (limited to 'server/confdb/confdb.h')
-rw-r--r-- | server/confdb/confdb.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/server/confdb/confdb.h b/server/confdb/confdb.h index a1d808559..3bd0d0387 100644 --- a/server/confdb/confdb.h +++ b/server/confdb/confdb.h @@ -19,12 +19,25 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef _CONF_DB_H +#define _CONF_DB_H + #include <stdbool.h> #include "talloc.h" #include "tevent.h" +#include "util/btreemap.h" #define CONFDB_FILE "config.ldb" +struct sss_domain_info { + char *name; + char *basedn; + int enumerate; + bool has_provider; + char *provider; + bool legacy; +}; + struct confdb_ctx; int confdb_add_param(struct confdb_ctx *cdb, @@ -59,4 +72,11 @@ int confdb_init(TALLOC_CTX *mem_ctx, int confdb_get_domains(struct confdb_ctx *cdb, TALLOC_CTX *mem_ctx, - char ***values); + struct btreemap **domains); + +int confdb_get_domains_list(struct confdb_ctx *cdb, + TALLOC_CTX *mem_ctx, + const char ***domain_names, + int *count); + +#endif |