summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf/smbconf.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-26 14:30:36 +0100
committerMichael Adam <obnox@samba.org>2008-03-26 14:55:05 +0100
commit2e83818b3b7f0f102685a535c11cbd0dc9c902a6 (patch)
treee93928fb06bed7299606ce56a969ae2b6c5fab88 /source3/lib/smbconf/smbconf.h
parent2b84aea424410a1c4d5b29849bfe4ee411c78fac (diff)
downloadsamba-2e83818b3b7f0f102685a535c11cbd0dc9c902a6.tar.gz
samba-2e83818b3b7f0f102685a535c11cbd0dc9c902a6.tar.bz2
samba-2e83818b3b7f0f102685a535c11cbd0dc9c902a6.zip
libsmbconf: add a text backend to libsmbconf based on the params.c parser.
This is a simple implementation of text backend for libsmbconf. It is read only. It uses the parser from params.c. It loads the given config file and holds the parsed lists of strings in memory. Config is only re-read if the time stamp of the config file has changed. Brilliant performance on large files is not to be expected since the string lists are not hashed. This might be added in the future. Michael (This used to be commit 4ea50843852b335a9bd4c0535a5b684134ad8326)
Diffstat (limited to 'source3/lib/smbconf/smbconf.h')
-rw-r--r--source3/lib/smbconf/smbconf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/smbconf/smbconf.h b/source3/lib/smbconf/smbconf.h
index 23b9504971..72729b9df8 100644
--- a/source3/lib/smbconf/smbconf.h
+++ b/source3/lib/smbconf/smbconf.h
@@ -38,6 +38,10 @@ struct smbconf_csn {
WERROR smbconf_init_reg(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx,
const char *path);
+WERROR smbconf_init_txt_simple(TALLOC_CTX *mem_ctx,
+ struct smbconf_ctx **conf_ctx,
+ const char *path);
+
/*
* the smbconf API functions
*/