1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

10 Commits

Author SHA1 Message Date
Andreas Schneider
29eea4b09a libsmbconf: Convert smbconf_init() to sbcErr.
Signed-off-by: Michael Adam <obnox@samba.org>
2011-05-10 19:13:20 +02:00
Günther Deschner
e9f5bdf6b5 smbconf: only include smbconf headers where needed.
Guenther
2010-05-18 10:36:33 +02:00
Michael Adam
85447ac747 s3:libsmbconf: include smbconf headers with lib/smbconf prefix
Michael
2009-01-21 18:40:57 +01:00
Michael Adam
d0a8c356fb s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_init
Michael
2009-01-21 18:40:56 +01:00
Michael Adam
9f3c67e80c s3:libsmbconf: remove the init headers from smbconf.h
give the smbconf_init() dispatcher and the backends
(smbconf_reg and smbconf_txt) a header of their own each.

This allows to use the basic infrastructure and
single backends individually.

Michael
2009-01-21 18:40:54 +01:00
Michael Adam
64ab71d2d7 [s3]libsmbconf: fall back to file backend when no valid backend was found
Interpret the source string as a file name when it contains
a ':' sign but the initial part is not a known backend.
This might occur even implicitly when "%T" is used in an
include file name (even though this is not realistic..).

Michael
2008-10-27 13:02:39 +01:00
Michael Adam
e453bf70c9 [s3]libsmbconf: fix comment typo.
Michael
2008-10-27 13:02:38 +01:00
Michael Adam
0ee8992331 [s3]libsmbconf: remove unused define.
Michael
2008-10-27 13:02:37 +01:00
Michael Adam
b2425f88fa libsmbconf: rename smbconf_init_txt_simple() to smbconf_init_txt().
...for consistency.

Michael
(This used to be commit 3d1da73f66)
2008-04-22 16:11:37 +02:00
Michael Adam
4eab3d3cf0 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 cc613a60eb)
2008-04-13 20:04:44 +02:00