libsmbconf: add a smbconf init dispatcher smbconf_init().
authorMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 15:13:16 +0000 (17:13 +0200)
committerMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 18:04:44 +0000 (20:04 +0200)
commit4eab3d3cf0d0fc111d0566089d902750be634759
tree7c2e4ebd05d2b3c47cbde16cbd650f9b0e2b0d97
parent09c6c38debb1d9d91bc1c39b57d29ec7ffaa77dd
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)
source3/Makefile.in
source3/lib/smbconf/smbconf.h
source3/lib/smbconf/smbconf_init.c [new file with mode: 0644]