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

14 Commits

Author SHA1 Message Date
Michael Adam
f5aac0a8d0 libsmbconf: add talloc context to the get_includes methods.
Michael
(This used to be commit ed535b6b30)
2008-04-10 01:28:57 +02:00
Michael Adam
8e97662899 libsmbconf: add get_includes() and set_includes() to the API.
Includes have to get a special treatment, at least for registry.
Includes are not like other smbconf parameters: they are some kind
of metainformation. "include" has two effects when stated twice so
it can not be stored boldly into registry, since there can only be
one value named "include" in registry per key.

I will provide special handling for includes for the registry backend.

This patch provides the necessary methods in the smbconf API.

Michael
(This used to be commit e86eb375d9)
2008-04-10 01:28:57 +02:00
Michael Adam
862608ca1f libsmbconf: add smbconf_reverse_find_in_array() to find last occurence of a string.
Michael
(This used to be commit 25e0fd8478)
2008-04-10 01:28:55 +02:00
Michael Adam
498e5f99d2 libsmbconf: move smbconf_find_in_array() to smbconf_util.c
Michael
(This used to be commit 7af79e60a3)
2008-04-10 01:28:55 +02:00
Michael Adam
015e424bf1 libsmbconf: reorder prototypes in smbconf_private.h
Michael
(This used to be commit 0e932a0981)
2008-04-10 01:28:55 +02:00
Michael Adam
be97af0edb libsmbconf: add private_data section to smbconf_ctx.
This private data should be used by backends.
The token for the registry backend is moved from
the context to the private data section, since
this is registry specific.

Michael
(This used to be commit a02163356b)
2008-03-21 22:52:27 +01:00
Michael Adam
6f7cfeddd6 libsmbconf: add a "path" variable to the conf context.
This is passed to the module init routines.
In case of the registry, this is the path of the
basekey in registry, that is to be used, defaulting
to KEY_SMBCONF (HKLM\software\samba\smbconf), when
NULL is given. This is the only case currently used.

In order to support other keys, registry initialization
for smbconf has to be changed to support different keys.

Michael
(This used to be commit 96434d9dc7)
2008-03-21 18:19:24 +01:00
Michael Adam
890d1d8f78 libsmbconf: move registry implementation to a module of its own.
Michael
(This used to be commit 431b10bfe0)
2008-03-21 16:26:50 +01:00
Michael Adam
8ae2afa3c8 libsmbconf: reformaat - fix some whispacing/tabs
Michael
(This used to be commit 1a5e5bf38f)
2008-03-21 02:29:09 +01:00
Michael Adam
fececde181 libsmbconf: add backend specific init function.
Hide generic init function taking smbconf_ops argument
from public api.

Michael
(This used to be commit b3f6920ccb)
2008-03-21 02:25:56 +01:00
Michael Adam
6c20e83294 libsmbconf: add shutdown handler to smbconf_ops.
Michael
(This used to be commit acbd1f40e0)
2008-03-21 02:25:56 +01:00
Michael Adam
ac7c582ec0 libsmbconf: add open and close operations to the smbconf_ops.
Note: currently, reg_init_smbconf opens the registry, but does
not close it. This has to be changed. so that it is closed.
And then libsmbconf will need these open/close functions

Michael
(This used to be commit 77dbdf82ef)
2008-03-21 02:25:56 +01:00
Michael Adam
2135f7dd61 libsmbconf: introduce a smbconf_ops layer to allow interchangeable backends.
Michael
(This used to be commit a857f643d1)
2008-03-21 02:25:56 +01:00
Michael Adam
7b53c84fe1 libsmbconf: put the smbconf context struct into a private header.
Michael
(This used to be commit a99ee5e536)
2008-03-21 02:25:55 +01:00