From cd632a9d2cda129f79b4ddd5484b748806c68ef6 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 17 Oct 2008 13:58:52 -0400 Subject: Add configuration database functions. Convert nss responder to use the confdb --- server/confdb/confdb.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 server/confdb/confdb.h (limited to 'server/confdb/confdb.h') diff --git a/server/confdb/confdb.h b/server/confdb/confdb.h new file mode 100644 index 000000000..8becdf99c --- /dev/null +++ b/server/confdb/confdb.h @@ -0,0 +1,39 @@ +/* + SSSD + + NSS Configuratoin DB + + Copyright (C) Simo Sorce 2008 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +struct confdb_ctx; + +int confdb_add_param(struct confdb_ctx *cdb, + bool replace, + const char *section, + const char *attribute, + const char **values); + + +int confdb_get_param(struct confdb_ctx *cdb, + TALLOC_CTX *mem_ctx, + const char *section, + const char *attribute, + char ***values); + +int confdb_init(TALLOC_CTX *mem_ctx, + struct event_context *ev, + struct confdb_ctx **cdb_ctx); -- cgit