diff options
author | Michael Adam <obnox@samba.org> | 2008-04-13 17:13:16 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-13 20:04:44 +0200 |
commit | 4eab3d3cf0d0fc111d0566089d902750be634759 (patch) | |
tree | 7c2e4ebd05d2b3c47cbde16cbd650f9b0e2b0d97 /source3/lib/smbconf/smbconf.h | |
parent | 09c6c38debb1d9d91bc1c39b57d29ec7ffaa77dd (diff) | |
download | samba-4eab3d3cf0d0fc111d0566089d902750be634759.tar.gz samba-4eab3d3cf0d0fc111d0566089d902750be634759.tar.bz2 samba-4eab3d3cf0d0fc111d0566089d902750be634759.zip |
libsmbconf: add a smbconf init dispatcher smbconf_init().
The dispatcher takes a config source argument in the form
of "backend:path" where backend can (currently) be one of
"txt" (aka "file") or "reg" (aka "registry").
When the path is omitted, it is up to the backend to provide
a default path.
When there is no separator ":" and the string is not a recognized
backend, then file backend is assumed and the string is passed
in as the path argument.
Michael
(This used to be commit cc613a60eb0f6b92cae98e8669e5e569a1eb9324)
Diffstat (limited to 'source3/lib/smbconf/smbconf.h')
-rw-r--r-- | source3/lib/smbconf/smbconf.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/smbconf/smbconf.h b/source3/lib/smbconf/smbconf.h index e48a0cce97..481c2b1693 100644 --- a/source3/lib/smbconf/smbconf.h +++ b/source3/lib/smbconf/smbconf.h @@ -29,8 +29,11 @@ struct smbconf_csn { /* * initialization functions for the available modules - * (a dispatcher might be added in the future) */ + +WERROR smbconf_init(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx, + const char *source); + WERROR smbconf_init_reg(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx, const char *path); |