diff options
author | Tim Potter <tpot@samba.org> | 2002-05-14 07:11:31 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-05-14 07:11:31 +0000 |
commit | 60f4e9dccc31ff54ca941dc473e3b025b659f8b8 (patch) | |
tree | c0018c2bb3cb70729206e86bc715c227f9be6df6 | |
parent | ceb338a35c80f1ddd8965b19bdbde5e870107fb7 (diff) | |
download | samba-60f4e9dccc31ff54ca941dc473e3b025b659f8b8.tar.gz samba-60f4e9dccc31ff54ca941dc473e3b025b659f8b8.tar.bz2 samba-60f4e9dccc31ff54ca941dc473e3b025b659f8b8.zip |
Fixed bug in enumprinterdrivers.
Added stubs for addprinterdriver and deleteprinterdriver functions.
(This used to be commit ca315ef84ff949edfbf0a8df0ae2128a97fc3ac5)
-rw-r--r-- | source3/python/py_spoolss_drivers.c | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/source3/python/py_spoolss_drivers.c b/source3/python/py_spoolss_drivers.c index de2fd5626b..b612e139f3 100644 --- a/source3/python/py_spoolss_drivers.c +++ b/source3/python/py_spoolss_drivers.c @@ -78,7 +78,7 @@ PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args, for (i = 0; i < num_drivers; i++) { PyObject *value; - py_from_DRIVER_INFO_1(&value, ctr.info1); + py_from_DRIVER_INFO_1(&value, &ctr.info1[i]); PyList_SetItem(result, i, value); } @@ -89,7 +89,7 @@ PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args, for(i = 0; i < num_drivers; i++) { PyObject *value; - py_from_DRIVER_INFO_2(&value, ctr.info2); + py_from_DRIVER_INFO_2(&value, &ctr.info2[i]); PyList_SetItem(result, i, value); } @@ -100,7 +100,7 @@ PyObject *spoolss_enumprinterdrivers(PyObject *self, PyObject *args, for(i = 0; i < num_drivers; i++) { PyObject *value; - py_from_DRIVER_INFO_6(&value, ctr.info6); + py_from_DRIVER_INFO_6(&value, &ctr.info6[i]); PyList_SetItem(result, i, value); } @@ -241,3 +241,27 @@ PyObject *spoolss_getprinterdriverdir(PyObject *self, PyObject *args, Py_INCREF(result); return result; } + +PyObject *spoolss_addprinterdriver(PyObject *self, PyObject *args, + PyObject *kw) +{ + return NULL; +} + +PyObject *spoolss_addprinterdriverex(PyObject *self, PyObject *args, + PyObject *kw) +{ + return NULL; +} + +PyObject *spoolss_deleteprinterdriver(PyObject *self, PyObject *args, + PyObject *kw) +{ + return NULL; +} + +PyObject *spoolss_deleteprinterdriverex(PyObject *self, PyObject *args, + PyObject *kw) +{ + return NULL; +} |