summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-22 04:38:57 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-22 04:38:57 +0100
commitd58270c5373416997cc70fe392b307a4522e43d9 (patch)
tree08e833856d97b6e412b703e72308da9ffee2f3ac /source4/param
parent24b62772ab78a84d4a35f5eb15e327b6b76782b0 (diff)
downloadsamba-d58270c5373416997cc70fe392b307a4522e43d9.tar.gz
samba-d58270c5373416997cc70fe392b307a4522e43d9.tar.bz2
samba-d58270c5373416997cc70fe392b307a4522e43d9.zip
Add header for pyparam.
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/provision.c2
-rw-r--r--source4/param/pyparam.h25
2 files changed, 26 insertions, 1 deletions
diff --git a/source4/param/provision.c b/source4/param/provision.c
index b207cf6145..7a06f77d96 100644
--- a/source4/param/provision.c
+++ b/source4/param/provision.c
@@ -28,12 +28,12 @@
#include <Python.h>
#include "scripting/python/modules.h"
#include "lib/ldb/pyldb.h"
+#include "param/pyparam.h"
NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
struct provision_settings *settings,
struct provision_result *result)
{
- extern struct loadparm_context *lp_from_py_object(PyObject *py_obj);
PyObject *provision_mod, *provision_dict, *provision_fn, *py_result, *parameters;
DEBUG(0,("Provision for Become-DC test using python\n"));
diff --git a/source4/param/pyparam.h b/source4/param/pyparam.h
new file mode 100644
index 0000000000..4d7e32d908
--- /dev/null
+++ b/source4/param/pyparam.h
@@ -0,0 +1,25 @@
+/*
+ Unix SMB/CIFS implementation.
+ Samba utility functions
+ Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2008
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef _PYPARAM_H_
+#define _PYPARAM_H_
+
+struct loadparm_context *lp_from_py_object(PyObject *py_obj);
+
+#endif /* _PYPARAM_H_ */