From d58270c5373416997cc70fe392b307a4522e43d9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 22 Dec 2008 04:38:57 +0100 Subject: Add header for pyparam. --- source4/param/provision.c | 2 +- source4/param/pyparam.h | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 source4/param/pyparam.h (limited to 'source4/param') 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 #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 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 . +*/ + +#ifndef _PYPARAM_H_ +#define _PYPARAM_H_ + +struct loadparm_context *lp_from_py_object(PyObject *py_obj); + +#endif /* _PYPARAM_H_ */ -- cgit