new method setServer()
Hi,
for monitoring purposes of different CUPS-servers a method setServer() proved to be quite useful for me.
The patch for it against version 2.7.10 is attached inline below.
I'd be grateful if you could incorporate into the mainstream version so that in future I don't have to patch it again.
Thank you very much.
Christof
--- hplip-2.
+++ hplip-2.
@@ -1014,6 +1014,14 @@
return Py_BuildValue( "s", cupsServer() );
}
+PyObject * setServer( PyObject * self, PyObject * args )
+{
+ char *Server=NULL;
+ PyArg_ParseTupl
+ cupsSetServer(
+ return Py_BuildValue( "" );
+}
+
// *******
@@ -1755,6 +1763,7 @@
{ "cancelJob", ( PyCFunction ) cancelJob, METH_VARARGS },
{ "getJobs", ( PyCFunction ) getJobs, METH_VARARGS },
{ "getServer", ( PyCFunction ) getServer, METH_VARARGS },
+ { "setServer", ( PyCFunction ) setServer, METH_VARARGS },
{ "addOption", ( PyCFunction ) addOption, METH_VARARGS },
{ "removeOption", ( PyCFunction ) removeOption, METH_VARARGS },
{ "resetOptions", ( PyCFunction ) resetOptions, METH_VARARGS },
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- dwelch91
- Solved:
- Last query:
- Last reply: