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

Added deleteprinterdata function.

Stub for deleteprinterdataex.
(This used to be commit 14acdbf06d)
This commit is contained in:
Tim Potter
2002-05-14 07:13:25 +00:00
parent 60f4e9dccc
commit d8b60d56fb

View File

@ -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)
{
}