summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf
AgeCommit message (Collapse)AuthorFilesLines
2008-04-10libsmbconf: add "_global_" wrappers for get/set_includes.Michael Adam2-0/+36
These use the usual global_check like the other global wrappers. Michael (This used to be commit ce1b2f550860cb3a566db09f7c7eac39c195a5b7)
2008-04-10libsmbconf: testsuite: add test for "get_includes" and use it in the text ↵Michael Adam1-0/+32
backend test. Michael (This used to be commit 1ca5afe58cef8b750a65bd8c2a5c9ee794ed50ba)
2008-04-10libsmbconf: fill get_includes() in text backed to retrieve includes from cache.Michael Adam1-1/+53
Michael (This used to be commit 5e253e10b7f80af1f5a855c8e0f00846853cced1)
2008-04-10libsmbconf: testsuite: set the debufg fd to stderr.Michael Adam1-0/+1
...so that we see some debug output Michael (This used to be commit 7cfec55ed48644f922ca0ffaa171e3512c93a360)
2008-04-10libsmbconf: testsuite: use POPT_COMMON_SAMBA instead of POPT_COMMON_CONFIGFILEMichael Adam1-1/+1
so we can for instance set the debug level on the command line. Michael (This used to be commit 94a19234620fc23db9c4aaf449e948342164d1d4)
2008-04-10libsmbconf: testsuite: add talloc_stackframe to main().Michael Adam1-0/+2
Michael (This used to be commit 8c631ac2f42e984137972b7388add4bcbc199665)
2008-04-10libsmbconf: testsuite: add support for "--configfile" option.Michael Adam1-1/+32
Michael (This used to be commit 9f6c909f465df5fc64e2bec88acf272be9cd574e)
2008-04-10libsmbconf: add testsuite to the library.Michael Adam1-0/+94
Currently only the init function is tested, more tests to come... Michael (This used to be commit bc8dc8626c5fb296edbd193a7cc293317c7a29ca)
2008-04-10libsmbconf: add talloc context to the get_includes methods.Michael Adam5-1/+7
Michael (This used to be commit ed535b6b30b5c9412803f6373eadc704de6de2f9)
2008-04-10libsmbconf: add get_includes() and set_includes() to the API.Michael Adam5-2/+73
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: activate the verbatim-flag in text backend: store parameters as ↵Michael Adam1-1/+2
they come. with verbatim == true, parameters are stored as they come from the input file, duplicates are listed multiple times, etc. Michael (This used to be commit c65575f831e9929ef7e66f2c7bfeed50f135b4b2)
2008-04-10libsmbconf: pass txt_private_data instead of only cache to do_parameter/sectionMichael Adam2-4/+6
in preparation of using the verbatim flag. Michael (This used to be commit c68cd2477c65d5521a713ae0f37cf2994d2c339e)
2008-04-10libsmbconf: load file after special initializationMichael Adam1-2/+3
otherwise verbatim parameter can have no effect. Michael (This used to be commit 2ff0b693d7fc7e130a2fb14c06ae8bc28f4b5c57)
2008-04-10libsmbconf: add a "verbatim" parameter to smbconf_init_txt_simple().Michael Adam2-3/+14
Michael (This used to be commit b9e72b402de412c23702715ead96c20e9b3248cc)
2008-04-10libsmbconf: reformat smbconf_format_registry_value() - indentations/tabsMichael Adam1-12/+12
Michael (This used to be commit b79a33eb2f370b8d8b50ed5ed2a0acc83e711c1e)
2008-04-10libsmbconf: untangle assignment and test in for-loop condition.Michael Adam1-4/+4
Michael (This used to be commit 4339caff09e1277ae33d3810043bcb3f4e7c4e45)
2008-04-10libsmbconf: fix a commentMichael Adam1-1/+1
Michael (This used to be commit bc1a5bdbd3b7da1f85c952579096b3c8dc407572)
2008-04-10libsmbconf: search from the back when getting parameter from text backendMichael Adam1-4/+4
so we make sure to always deliver the value last read. Michael (This used to be commit 2eb5a681e9e3ff302b5151f25d6856834eae7d54)
2008-04-10libsmbconf: add smbconf_reverse_find_in_array() to find last occurence of a ↵Michael Adam2-0/+24
string. Michael (This used to be commit 25e0fd84780f4acb80cac3b5f54f9597e0e2f53e)
2008-04-10libsmbconf: move smbconf_find_in_array() to smbconf_util.cMichael Adam3-21/+24
Michael (This used to be commit 7af79e60a3060083eae67bd053837c955b3f5c10)
2008-04-10libsmbconf: reorder prototypes in smbconf_private.hMichael Adam1-3/+3
Michael (This used to be commit 0e932a0981ef52ff9d236b887eb8177304a99915)
2008-04-10libsmbconf: rename smbconf_txt_find_in_array() to smbconf_find_in_array()Michael Adam1-21/+20
Michael (This used to be commit 9890f437264c6acc8c61c430a53c4645e0a12959)
2008-04-10libsmbconf: move utility functions from main module to new smbconf_util.cMichael Adam2-88/+103
Michael (This used to be commit e0f6a9d50c9b72ec33d4323d1a6c5bdf44d011e7)
2008-04-03libsmbconf: move initialization of registry value down after error checks.Michael Adam1-6/+6
Michael (This used to be commit 2a8029985f9bde4da8ca20bc24d937150eab444c)
2008-03-27libsmbconf: text - pass the cache instead of all private data to pm_process.Michael Adam1-40/+40
Michael (This used to be commit ee46f0eca6ea21d0c51103252fecf911bb448687)
2008-03-27libsmbconf: text - change the cache to be tallocedMichael Adam1-31/+47
instead of having it directly as a member in the private data struct. This makes it easier to flush and initialize the cache. Michael (This used to be commit 03efb72b4632e2bbb0838ca56a3e556448bda5c5)
2008-03-27libsmbconf: in text backend, put flushing of the cache into a helper function.Michael Adam1-6/+12
And use it also in the close operation. Michael (This used to be commit 8cb288124993eb59459e7e9777c65e58c0554d55)
2008-03-26libsmbconf: add a text backend to libsmbconf based on the params.c parser.Michael Adam2-0/+524
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-26smbconf: reformat - fix intentation.Michael Adam1-4/+4
This time this won't make me stumble, since there is no magic in indented function headers here - no automatic prototype generation... :-) Michael (This used to be commit 6d72fc4373adff01cf6e0e18f78082d1eab90064)
2008-03-21registry: fix registry_init_smbconf() to close the registry at the end.Michael Adam1-2/+0
Michael (This used to be commit f4d87fdbf266a36fbb50dae863ee0784165c2fe1)
2008-03-21libsmbconf: add internal open/close handling to registry backend.Michael Adam1-4/+38
This internally keeps track of opened registry in the private data struct. The first call that really accesses data, opens the registry and it is kept open until the destructor is called. This behaviour might be changed in the future. Michael (This used to be commit 03e72e13076e3215eb8ae51cfb4e7cd3d3683d3e)
2008-03-21libsmbconf: add a comment.Michael Adam1-0/+3
Michael (This used to be commit 513ae78ef78d3ddcb155f9c38b9a0c82809e0998)
2008-03-21libsmbconf: add private_data section to smbconf_ctx.Michael Adam2-8/+20
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 a02163356bdd0c17a25a45e9904f8bd1e1c4bee4)
2008-03-21libsmbconf: add a "path" variable to the conf context.Michael Adam4-14/+26
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: group together functions in smbconf.c more appropriatelyMichael Adam1-21/+29
Michael (This used to be commit e8ed8ad077f69ae7237f49b150625d20eb509586)
2008-03-21libsmbconf: add a comment.Michael Adam1-1/+5
Michael (This used to be commit 8974b283683799bc51223d27b7e6aecac741fbc2)
2008-03-21libsmbconf: move registry implementation to a module of its own.Michael Adam3-721/+754
Michael (This used to be commit 431b10bfe0dba0a49e50bebfb3f8ad1a00955837)
2008-03-21libsmbconf: reformaat - fix some whispacing/tabsMichael Adam1-7/+7
Michael (This used to be commit 1a5e5bf38f409b10c8b1da6227722c7d3976b175)
2008-03-21libsmbconf: add backend specific init function.Michael Adam3-3/+12
Hide generic init function taking smbconf_ops argument from public api. Michael (This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
2008-03-21libsmbconf: add shutdown handler to smbconf_ops.Michael Adam2-1/+8
Michael (This used to be commit acbd1f40e0cb4cb5b2ba826c4825edda7ee4937b)
2008-03-21libsmbconf: fix commentsMichael Adam1-2/+1
Michael (This used to be commit 24f32d9bd9aa837d777ea4187bebf3146a67ce59)
2008-03-21libsmbconf: rename smbconf_close() to smbconf_shutdown().Michael Adam2-3/+3
Michael (This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)
2008-03-21libsmbconf: rename smbconf_open() to smbconf_init().Michael Adam2-3/+3
That's more appropriate. Michael (This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)
2008-03-21libsmbconf: add open and close operations to the smbconf_ops.Michael Adam2-1/+15
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 77dbdf82efa60c8a7c00e489c198775b2f66e56c)
2008-03-21libsmbconf: introduce a smbconf_ops layer to allow interchangeable backends.Michael Adam2-14/+64
Michael (This used to be commit a857f643d1558c0fdab4b647695d75223b730b96)
2008-03-21libsmbconf: move smbconf_reg_initialize() down to the smbconf operations.Michael Adam1-20/+20
Michael (This used to be commit f2d605006cd1187f70a044c3356d436e91093d5f)
2008-03-21libsmbconf: add existence check for service to smbconf_delete_share().Michael Adam1-0/+4
Michael (This used to be commit d44c2ef0b7d7bddb4115b596872748132ebd6ddc)
2008-03-21libsmbconf: add existence check for service to smbconf_get_share().Michael Adam1-0/+4
Michael (This used to be commit 26208d3e96a1e257628366709a1d71ac36f0788b)