summaryrefslogtreecommitdiffstats
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-22 16:31:16 +0200
committerMichael Adam <obnox@samba.org>2008-04-23 01:43:31 +0200
commitfb9232c0a98d9ce600e379dd03ee6fa3cd73cba5 (patch)
tree611aebbcadfb490cb37bcb70fd22f942be888ea7 /source3/param/loadparm.c
parent5dd54c58b4d65b28751fda3ba2acbfe71ea7a75f (diff)
downloadsamba-fb9232c0a98d9ce600e379dd03ee6fa3cd73cba5.tar.gz
samba-fb9232c0a98d9ce600e379dd03ee6fa3cd73cba5.tar.xz
samba-fb9232c0a98d9ce600e379dd03ee6fa3cd73cba5.zip
libsmbconf: rewrite API to use smbconf_service struct
instead of lists of strings and counters directly... Michael (This used to be commit 17415e2dc457ce41793a7e28e71f72c538c19c61)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 962c0a4627..09049db9ff 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -6497,9 +6497,7 @@ bool service_ok(int iService)
static bool process_registry_globals(void)
{
WERROR werr;
- char **param_names;
- char **param_values;
- uint32_t num_params;
+ struct smbconf_service *service = NULL;
uint32_t count;
TALLOC_CTX *mem_ctx = talloc_stackframe();
bool ret = false;
@@ -6519,14 +6517,14 @@ static bool process_registry_globals(void)
goto done;
}
- werr = smbconf_get_share(conf_ctx, mem_ctx, GLOBAL_NAME,
- &num_params, &param_names, &param_values);
+ werr = smbconf_get_share(conf_ctx, mem_ctx, GLOBAL_NAME, &service);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
- for (count = 0; count < num_params; count++) {
- ret = do_parameter(param_names[count], param_values[count],
+ for (count = 0; count < service->num_params; count++) {
+ ret = do_parameter(service->param_names[count],
+ service->param_values[count],
NULL);
if (ret != true) {
goto done;