summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-14 07:13:25 +0000
committerTim Potter <tpot@samba.org>2002-05-14 07:13:25 +0000
commitd8b60d56fb961639e0d79c751c619badecadce8e (patch)
treedc0bbda2ef4306ada03a828918d50545cb5504d9 /source3
parent60f4e9dccc31ff54ca941dc473e3b025b659f8b8 (diff)
downloadsamba-d8b60d56fb961639e0d79c751c619badecadce8e.tar.gz
samba-d8b60d56fb961639e0d79c751c619badecadce8e.tar.bz2
samba-d8b60d56fb961639e0d79c751c619badecadce8e.zip
Added deleteprinterdata function.
Stub for deleteprinterdataex. (This used to be commit 14acdbf06dec517a4f2fee5904cae1c0b72a90aa)
Diffstat (limited to 'source3')
-rw-r--r--source3/python/py_spoolss_printerdata.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/source3/python/py_spoolss_printerdata.c b/source3/python/py_spoolss_printerdata.c
index 352252f2bd..c22eaa2239 100644
--- a/source3/python/py_spoolss_printerdata.c
+++ b/source3/python/py_spoolss_printerdata.c
@@ -198,3 +198,33 @@ PyObject *spoolss_enumprinterdata(PyObject *self, PyObject *args, PyObject *kw)
return result;
}
+
+PyObject *spoolss_deleteprinterdata(PyObject *self, PyObject *args, PyObject *kw)
+{
+ spoolss_policy_hnd_object *hnd = (spoolss_policy_hnd_object *)self;
+ static char *kwlist[] = { "value", NULL };
+ char *value;
+ WERROR werror;
+
+ /* Parse parameters */
+
+ if (!PyArg_ParseTupleAndKeywords(args, kw, "s", kwlist, &value))
+ return NULL;
+
+ /* Call rpc function */
+
+ werror = cli_spoolss_deleteprinterdata(
+ hnd->cli, hnd->mem_ctx, &hnd->pol, value);
+
+ if (!W_ERROR_IS_OK(werror)) {
+ PyErr_SetObject(spoolss_werror, py_werror_tuple(werror));
+ return NULL;
+ }
+
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+
+PyObject *spoolss_deleteprinterdataex(PyObject *self, PyObject *args, PyObject *kw)
+{
+}