summaryrefslogtreecommitdiffstats
path: root/server/confdb/confdb.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-02-20 18:00:05 -0500
committerSimo Sorce <idra@samba.org>2009-02-20 18:10:24 -0500
commit0998732a5621fd94ada7051d4c0fbc456e9befb8 (patch)
tree5310b3814bbf13a4d6d84727bafca52c23e52430 /server/confdb/confdb.h
parentb8f07efe5d98071777e3a2863688c8269a7912e4 (diff)
downloadsssd-0998732a5621fd94ada7051d4c0fbc456e9befb8.tar.gz
sssd-0998732a5621fd94ada7051d4c0fbc456e9befb8.tar.xz
sssd-0998732a5621fd94ada7051d4c0fbc456e9befb8.zip
Add helper function to get booleans from confdb
Diffstat (limited to 'server/confdb/confdb.h')
-rw-r--r--server/confdb/confdb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/confdb/confdb.h b/server/confdb/confdb.h
index d117d04..57da196 100644
--- a/server/confdb/confdb.h
+++ b/server/confdb/confdb.h
@@ -44,6 +44,10 @@ int confdb_get_int(struct confdb_ctx *cdb, TALLOC_CTX *ctx,
const char *section, const char *attribute,
int defval, int *result);
+int confdb_get_bool(struct confdb_ctx *cdb, TALLOC_CTX *ctx,
+ const char *section, const char *attribute,
+ bool defval, bool *result);
+
int confdb_init(TALLOC_CTX *mem_ctx,
struct event_context *ev,
struct confdb_ctx **cdb_ctx,