From 0998732a5621fd94ada7051d4c0fbc456e9befb8 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 20 Feb 2009 18:00:05 -0500 Subject: Add helper function to get booleans from confdb --- server/confdb/confdb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/confdb/confdb.h') diff --git a/server/confdb/confdb.h b/server/confdb/confdb.h index d117d043..57da1967 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, -- cgit