summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf/smbconf.h
AgeCommit message (Collapse)AuthorFilesLines
2008-04-23libsmbconf: rewrite API to use smbconf_service structMichael Adam1-4/+3
instead of lists of strings and counters directly... Michael (This used to be commit 17415e2dc457ce41793a7e28e71f72c538c19c61)
2008-04-22libsmbconf: add a struct smbconf_service to hold the parameter names + values.Michael Adam1-0/+7
Michael (This used to be commit 8118a8348f36b28fa4d46b42a104097cefa33a4d)
2008-04-22libsmbconf: fix comment headers in smbconf.hMichael Adam1-3/+8
Michael (This used to be commit 54c0461679642b38653f803e7b21d865472f3f91)
2008-04-22libsmbconf: rename smbconf_init_txt_simple() to smbconf_init_txt().Michael Adam1-3/+3
...for consistency. Michael (This used to be commit 3d1da73f66b8452693262e2d03f986eec438451d)
2008-04-13libsmbconf: add a smbconf init dispatcher smbconf_init().Michael Adam1-1/+4
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)
2008-04-13libsmbconf: remove the bool verbatim parameter from txt backend init function.Michael Adam1-2/+1
Always be verbatim for now. Backend config options may be added later via some private data pointer. Michael (This used to be commit e8bafcfbf4a7ab1dc1ce4f2acd24b0eb74933256)
2008-04-11libsmbconf: don't mark the API as "subject to change" any longer.Michael Adam1-4/+0
At least I hope it won't need many changes anymore... Michael (This used to be commit c4e1439eded7bb4df60b9d4b457e5b7898928c9e)
2008-04-10libsmbconf: add delete_includes mehtod to the api (and backend implementations)Michael Adam1-0/+2
Michael (This used to be commit daef50e54d58a6684b6a890ebf523ca6245f0290)
2008-04-10libsmbconf: add "_global_" wrappers for get/set_includes.Michael Adam1-0/+6
These use the usual global_check like the other global wrappers. Michael (This used to be commit ce1b2f550860cb3a566db09f7c7eac39c195a5b7)
2008-04-10libsmbconf: add talloc context to the get_includes methods.Michael Adam1-0/+1
Michael (This used to be commit ed535b6b30b5c9412803f6373eadc704de6de2f9)
2008-04-10libsmbconf: add get_includes() and set_includes() to the API.Michael Adam1-0/+6
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 e86eb375d9f83f73aeea0a16c8b43e2ef21a6e20)
2008-04-10libsmbconf: pass txt_private_data instead of only cache to do_parameter/sectionMichael Adam1-1/+1
in preparation of using the verbatim flag. Michael (This used to be commit c68cd2477c65d5521a713ae0f37cf2994d2c339e)
2008-04-10libsmbconf: add a "verbatim" parameter to smbconf_init_txt_simple().Michael Adam1-1/+2
Michael (This used to be commit b9e72b402de412c23702715ead96c20e9b3248cc)
2008-03-26libsmbconf: add a text backend to libsmbconf based on the params.c parser.Michael Adam1-0/+4
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)
2008-03-21libsmbconf: add a "path" variable to the conf context.Michael Adam1-1/+2
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 96434d9dc7a66773e313cc128af57493dee245a1)
2008-03-21libsmbconf: add structuring comments to the prototypes in the public header.Michael Adam1-0/+8
Michael (This used to be commit 4f816df27670c3b6aabea9f26ef2d26f3e882e78)
2008-03-21libsmbconf: adapt a comment to new circumstancesMichael Adam1-3/+1
Michael (This used to be commit 83b9453c88bfdf615cc2b547645b0a71a870f473)
2008-03-21libsmbconf: add backend specific init function.Michael Adam1-1/+1
Hide generic init function taking smbconf_ops argument from public api. Michael (This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
2008-03-21libsmbconf: rename smbconf_close() to smbconf_shutdown().Michael Adam1-1/+1
Michael (This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)
2008-03-21libsmbconf: rename smbconf_open() to smbconf_init().Michael Adam1-1/+1
That's more appropriate. Michael (This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)
2008-03-21libsmbconf: put the smbconf context struct into a private header.Michael Adam1-3/+1
Michael (This used to be commit a99ee5e536eee1563c90e5d7f251bfe9f5d1ffbb)
2008-03-21libsmbconf: change the API to always take the smbconf_ctx parameter first.Michael Adam1-9/+11
..for consistency. Exception: the open/init function, where the smbconf_ctx is created from the given talloc context. Michael (This used to be commit 304dba6cb2184437f3edad065a530d03fb704036)
2008-03-21libsmbconf: change smbconf_get_seqnum() to smbconf_changed().Michael Adam1-2/+7
The former seqnum is hidden inside a struct smbconf_csn. And the get_seqnum is united with a changed function that stores the seqnum inside the given csn. Michael (This used to be commit 5b6b90900a1a3eab24cb5612d78f9678a363cf73)
2008-03-17libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .Michael Adam1-41/+39
Michael (This used to be commit 097af0309d7c3e9342058ba5266667293b23c80d)
2008-03-17Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.Michael Adam1-0/+75
The libnet_conf code to access the registry based configuration has become more of a library used in several places in samba (e.g. loadparm) than an abstraction of "net conf". So I move it to a location lib/smbconf/. In the same breath, the api is fixed (not generated by make proto anymore). Michael (This used to be commit 5315ef41f403b96715dd68b512e9e74662e2910a)