summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/pyparam.c9
-rw-r--r--source4/param/pyparam.h1
-rw-r--r--source4/param/pyparam_util.c11
3 files changed, 12 insertions, 9 deletions
diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c
index e32cfa0523..d8dabe3458 100644
--- a/source4/param/pyparam.c
+++ b/source4/param/pyparam.c
@@ -325,15 +325,6 @@ PyTypeObject PyLoadparmService = {
.tp_flags = Py_TPFLAGS_DEFAULT,
};
-struct loadparm_context *py_default_loadparm_context(TALLOC_CTX *mem_ctx)
-{
- struct loadparm_context *ret;
- ret = loadparm_init(mem_ctx);
- if (!lp_load_default(ret))
- return NULL;
- return ret;
-}
-
static PyObject *py_default_path(PyObject *self)
{
return PyString_FromString(lp_default_path());
diff --git a/source4/param/pyparam.h b/source4/param/pyparam.h
index 1cda8f1dba..48885c053b 100644
--- a/source4/param/pyparam.h
+++ b/source4/param/pyparam.h
@@ -21,5 +21,6 @@
#define _PYPARAM_H_
_PUBLIC_ struct loadparm_context *lp_from_py_object(PyObject *py_obj);
+_PUBLIC_ struct loadparm_context *py_default_loadparm_context(TALLOC_CTX *mem_ctx);
#endif /* _PYPARAM_H_ */
diff --git a/source4/param/pyparam_util.c b/source4/param/pyparam_util.c
index 0dc7c7fd13..9e4a6cdf64 100644
--- a/source4/param/pyparam_util.c
+++ b/source4/param/pyparam_util.c
@@ -52,3 +52,14 @@ _PUBLIC_ struct loadparm_context *lp_from_py_object(PyObject *py_obj)
return PyLoadparmContext_AsLoadparmContext(py_obj);
}
+
+struct loadparm_context *py_default_loadparm_context(TALLOC_CTX *mem_ctx)
+{
+ struct loadparm_context *ret;
+ ret = loadparm_init(mem_ctx);
+ if (!lp_load_default(ret))
+ return NULL;
+ return ret;
+}
+
+