From 6b2749f8a9f527c1d52ba76566c661cab30b59c6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 7 Jul 2011 20:33:55 +1000 Subject: 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 --- source4/param/pyparam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/param/pyparam.c') 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; } -- cgit