Added addjob command.
authorTim Potter <tpot@samba.org>
Thu, 16 May 2002 02:01:23 +0000 (02:01 +0000)
committerTim Potter <tpot@samba.org>
Thu, 16 May 2002 02:01:23 +0000 (02:01 +0000)
(This used to be commit e4cc7e2d521cb2777c15c00ec222342e2a0b02ca)

source3/python/py_spoolss.c
source3/python/py_spoolss_jobs.c
source3/python/py_spoolss_proto.h

index fde8b1efbdae316d0034dde5eacc02c0ebbcd0fc..95be77de55b8d3ee23222b072cf074e7c0eabc64 100644 (file)
@@ -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,
index 3a02cdac6870a3243dcfe2511d26ed9ddb790c0f..d98fdba13760544d492fb3c9754a5d1475e16137 100644 (file)
@@ -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;
+}
index ae990433d686a8fde4fdc238acf7b22d0a00dded..b197003c79ef0b4ce6f58c8b8bdc7d41773ce6ee 100644 (file)
@@ -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  */