summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-16 02:01:23 +0000
committerTim Potter <tpot@samba.org>2002-05-16 02:01:23 +0000
commitea8c45bbfd31151e91c1c57a162f255e706ca859 (patch)
tree26685c191e859096667ef12bb06d960e26d86ee1
parent932b8e9d40e620c166da907d48ae571e5d73db6a (diff)
downloadsamba-ea8c45bbfd31151e91c1c57a162f255e706ca859.tar.gz
samba-ea8c45bbfd31151e91c1c57a162f255e706ca859.tar.bz2
samba-ea8c45bbfd31151e91c1c57a162f255e706ca859.zip
Added addjob command.
(This used to be commit e4cc7e2d521cb2777c15c00ec222342e2a0b02ca)
-rw-r--r--source3/python/py_spoolss.c8
-rw-r--r--source3/python/py_spoolss_jobs.c6
-rw-r--r--source3/python/py_spoolss_proto.h1
3 files changed, 13 insertions, 2 deletions
diff --git a/source3/python/py_spoolss.c b/source3/python/py_spoolss.c
index fde8b1efbd..95be77de55 100644
--- a/source3/python/py_spoolss.c
+++ b/source3/python/py_spoolss.c
@@ -144,10 +144,10 @@ Example:
Example:
->>> spoolss.set_debuglevel(10)"
+>>> spoolss.set_debuglevel(10)" },
/* Printer driver routines */
-
+
{ "addprinterdriver", (PyCFunction)spoolss_addprinterdriver,
METH_VARARGS | METH_KEYWORDS,
"Add a printer driver." },
@@ -259,6 +259,10 @@ Set the form given by the dictionary argument."},
METH_VARARGS | METH_KEYWORDS,
"Write job data to a printer." },
+ { "addjob", (PyCFunction)spoolss_hnd_addjob,
+ METH_VARARGS | METH_KEYWORDS,
+ "Add a job to the list of print jobs." },
+
/* Printer data */
{ "getprinterdata", (PyCFunction)spoolss_hnd_getprinterdata,
diff --git a/source3/python/py_spoolss_jobs.c b/source3/python/py_spoolss_jobs.c
index 3a02cdac68..d98fdba137 100644
--- a/source3/python/py_spoolss_jobs.c
+++ b/source3/python/py_spoolss_jobs.c
@@ -380,3 +380,9 @@ PyObject *spoolss_hnd_writeprinter(PyObject *self, PyObject *args, PyObject *kw)
Py_INCREF(Py_None);
return Py_None;
}
+
+PyObject *spoolss_hnd_addjob(PyObject *self, PyObject *args, PyObject *kw)
+{
+ PyErr_SetString(spoolss_error, "Not implemented");
+ return NULL;
+}
diff --git a/source3/python/py_spoolss_proto.h b/source3/python/py_spoolss_proto.h
index ae990433d6..b197003c79 100644
--- a/source3/python/py_spoolss_proto.h
+++ b/source3/python/py_spoolss_proto.h
@@ -63,6 +63,7 @@ PyObject *spoolss_hnd_endpageprinter(PyObject *self, PyObject *args, PyObject *k
PyObject *spoolss_hnd_startdocprinter(PyObject *self, PyObject *args, PyObject *kw);
PyObject *spoolss_hnd_enddocprinter(PyObject *self, PyObject *args, PyObject *kw);
PyObject *spoolss_hnd_writeprinter(PyObject *self, PyObject *args, PyObject *kw);
+PyObject *spoolss_hnd_addjob(PyObject *self, PyObject *args, PyObject *kw);
/* The following definitions come from python/py_spoolss_jobs_conv.c */