From 230e36ccded13f5bf0e95ff93e6aa65ad7e368ec Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 28 Mar 2002 04:14:43 +0000 Subject: Aborted experiment to avoid namespace pollution and prototype hell and moved to 'make proto' based solution. (This used to be commit 1e48f872a494228e82fd32c789b3dcea6b014211) --- source3/python/py_spoolss_printers.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'source3/python/py_spoolss_printers.c') diff --git a/source3/python/py_spoolss_printers.c b/source3/python/py_spoolss_printers.c index 192823221a..69eeb0f66b 100644 --- a/source3/python/py_spoolss_printers.c +++ b/source3/python/py_spoolss_printers.c @@ -18,6 +18,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "python/py_spoolss.h" + struct pyconv py_PRINTER_INFO_0[] = { { "printer_name", PY_UNISTR, offsetof(PRINTER_INFO_0, printername) }, { "server_name", PY_UNISTR, offsetof(PRINTER_INFO_0, servername) }, @@ -234,8 +236,7 @@ static PyObject *PyDEVICEMODE_FromDEVICEMODE(DEVICEMODE *devmode) /* Open a printer */ -static PyObject *spoolss_openprinter(PyObject *self, PyObject *args, - PyObject *kw) +PyObject *spoolss_openprinter(PyObject *self, PyObject *args, PyObject *kw) { char *full_name, *computer_name = NULL; TALLOC_CTX *mem_ctx; @@ -296,7 +297,7 @@ static PyObject *spoolss_openprinter(PyObject *self, PyObject *args, /* Close a printer */ -static PyObject *spoolss_closeprinter(PyObject *self, PyObject *args) +PyObject *spoolss_closeprinter(PyObject *self, PyObject *args) { PyObject *po; spoolss_policy_hnd_object *hnd; @@ -326,8 +327,7 @@ static PyObject *spoolss_closeprinter(PyObject *self, PyObject *args) /* Fetch printer information */ -static PyObject *spoolss_getprinter(PyObject *self, PyObject *args, - PyObject *kw) +PyObject *spoolss_getprinter(PyObject *self, PyObject *args, PyObject *kw) { spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; WERROR werror; @@ -403,8 +403,7 @@ static PyObject *spoolss_getprinter(PyObject *self, PyObject *args, /* Set printer information */ -static PyObject *spoolss_setprinter(PyObject *self, PyObject *args, - PyObject *kw) +PyObject *spoolss_setprinter(PyObject *self, PyObject *args, PyObject *kw) { spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self; WERROR werror; @@ -458,8 +457,7 @@ static PyObject *spoolss_setprinter(PyObject *self, PyObject *args, /* Enumerate printers */ -static PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, - PyObject *kw) +PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw) { WERROR werror; PyObject *result, *creds = NULL; -- cgit