diff options
author | Tim Potter <tpot@samba.org> | 2002-03-28 04:14:43 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-03-28 04:14:43 +0000 |
commit | 230e36ccded13f5bf0e95ff93e6aa65ad7e368ec (patch) | |
tree | 64d97e5198e9ce205a0028498769ef7131c79795 /source3/python/py_spoolss.c | |
parent | 321767cb6607a87598c10be692ad26a17dd30ab4 (diff) | |
download | samba-230e36ccded13f5bf0e95ff93e6aa65ad7e368ec.tar.gz samba-230e36ccded13f5bf0e95ff93e6aa65ad7e368ec.tar.bz2 samba-230e36ccded13f5bf0e95ff93e6aa65ad7e368ec.zip |
Aborted experiment to avoid namespace pollution and prototype hell and
moved to 'make proto' based solution.
(This used to be commit 1e48f872a494228e82fd32c789b3dcea6b014211)
Diffstat (limited to 'source3/python/py_spoolss.c')
-rw-r--r-- | source3/python/py_spoolss.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/source3/python/py_spoolss.c b/source3/python/py_spoolss.c index fd05c7e302..0c8d47848c 100644 --- a/source3/python/py_spoolss.c +++ b/source3/python/py_spoolss.c @@ -18,11 +18,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include "includes.h" -#include "Python.h" - -#include "python/py_common.h" -#include "python/py_conv.h" #include "python/py_spoolss.h" /* Exceptions this module can raise */ @@ -33,13 +28,6 @@ PyObject *spoolss_error, *spoolss_werror; * Routines to convert from python hashes to Samba structures */ -/* Return a cli_state struct opened on the SPOOLSS pipe. If credentials - are passed use them. */ - -typedef struct cli_state *(cli_pipe_fn)( - struct cli_state *cli, char *system_name, - struct ntuser_creds *creds); - struct cli_state *open_pipe_creds(char *system_name, PyObject *creds, cli_pipe_fn *connect_fn, struct cli_state *cli) @@ -110,8 +98,8 @@ struct cli_state *open_pipe_creds(char *system_name, PyObject *creds, return cli; } -static PyObject *new_policy_hnd_object(struct cli_state *cli, - TALLOC_CTX *mem_ctx, POLICY_HND *pol) +PyObject *new_policy_hnd_object(struct cli_state *cli, TALLOC_CTX *mem_ctx, + POLICY_HND *pol) { spoolss_policy_hnd_object *o; @@ -128,11 +116,6 @@ static PyObject *new_policy_hnd_object(struct cli_state *cli, * Method dispatch table */ -#include "py_spoolss_printers.c" -#include "py_spoolss_drivers.c" -#include "py_spoolss_ports.c" -#include "py_spoolss_forms.c" - static PyMethodDef spoolss_methods[] = { /* Open/close printer handles */ |