summaryrefslogtreecommitdiff
path: root/source4/param/pyparam.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-07 20:33:55 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-08 11:23:23 +0200
commit6b2749f8a9f527c1d52ba76566c661cab30b59c6 (patch)
treee2a07d6c5bd59d387c27ebd926841dad701f9a01 /source4/param/pyparam.c
parent198ad4df31e5e4ab177d0abb851cb5c0c527f8d4 (diff)
downloadsamba-6b2749f8a9f527c1d52ba76566c661cab30b59c6.tar.gz
samba-6b2749f8a9f527c1d52ba76566c661cab30b59c6.tar.bz2
samba-6b2749f8a9f527c1d52ba76566c661cab30b59c6.zip
param: Add hooks to s3 parm_struct and the parameters void * pointer
This is to that the pyparam hooks can use the hooks to connect with the s3 loadparm system. This now also includes per-service parameters. Andrew Bartlett
Diffstat (limited to 'source4/param/pyparam.c')
-rw-r--r--source4/param/pyparam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c
index cab009746d..c07892cc54 100644
--- a/source4/param/pyparam.c
+++ b/source4/param/pyparam.c
@@ -73,7 +73,7 @@ static PyObject *py_lp_ctx_get_helper(struct loadparm_context *lp_ctx, const cha
return PyString_FromString(value);
}
- parm = lpcfg_parm_struct(param_name);
+ parm = lpcfg_parm_struct(lp_ctx, param_name);
if (parm == NULL || parm->p_class == P_GLOBAL) {
return NULL;
}
@@ -93,7 +93,7 @@ static PyObject *py_lp_ctx_get_helper(struct loadparm_context *lp_ctx, const cha
return PyString_FromString(value);
} else {
/* its a global parameter */
- parm = lpcfg_parm_struct(param_name);
+ parm = lpcfg_parm_struct(lp_ctx, param_name);
if (parm == NULL) {
return NULL;
}