1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Added addjob command.

This commit is contained in:
Tim Potter
-
parent a8fcb151f8
commit e4cc7e2d52
3 changed files with 13 additions and 2 deletions

View File

@ -144,7 +144,7 @@ Example:
Example:
>>> spoolss.set_debuglevel(10)"
>>> spoolss.set_debuglevel(10)" },
/* Printer driver routines */
@ -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,

View 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;
}

View 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 */