diff options
author | Simo Sorce <idra@samba.org> | 2008-10-17 13:58:52 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-10-20 10:41:59 -0400 |
commit | cd632a9d2cda129f79b4ddd5484b748806c68ef6 (patch) | |
tree | 2712798ce6b49d728306f101ce0ace34d9c4a6ef /server/confdb/confdb.h | |
parent | 8b0afbc4aa94628290d74165cab6bec97c7e532b (diff) | |
download | sssd-cd632a9d2cda129f79b4ddd5484b748806c68ef6.tar.gz sssd-cd632a9d2cda129f79b4ddd5484b748806c68ef6.tar.bz2 sssd-cd632a9d2cda129f79b4ddd5484b748806c68ef6.zip |
Add configuration database functions.
Convert nss responder to use the confdb
Diffstat (limited to 'server/confdb/confdb.h')
-rw-r--r-- | server/confdb/confdb.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/server/confdb/confdb.h b/server/confdb/confdb.h new file mode 100644 index 00000000..8becdf99 --- /dev/null +++ b/server/confdb/confdb.h @@ -0,0 +1,39 @@ +/* + SSSD + + NSS Configuratoin DB + + Copyright (C) Simo Sorce <ssorce@redhat.com> 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 <http://www.gnu.org/licenses/>. +*/ + +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); |