~ubuntu-branches/debian/sid/hplip/sid

« back to all changes in this revision

Viewing changes to io/mudext/hpmudext.c

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2013-05-05 21:09:24 UTC
  • mfrom: (1.7.1) (20.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20130505210924-cfpl0sn36p5sr436
Tags: 3.13.4-1
* New upstream release
* Removed "KDE from long description." (Closes: #706269)
* Clarified "[hpijs] short description" (Closes: #706057)

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
result_code, uri = make_par_uri(devnode)
70
70
 
71
71
*/
72
 
static PyObject *handle_smartinstall(PyObject *self, PyObject *args)
73
 
{
74
 
    int result;
75
 
    if (!PyArg_ParseTuple(args, ""))
76
 
        return NULL;
77
 
 
78
 
    Py_BEGIN_ALLOW_THREADS
79
 
    result = HandleSmartInstall();
80
 
    Py_END_ALLOW_THREADS
81
 
 
82
 
    return Py_BuildValue("i", result);
83
 
}
 
72
 
84
73
 
85
74
 static PyObject *open_device(PyObject *self, PyObject *args)
86
75
{
411
400
    {"make_zc_uri",         (PyCFunction)make_zc_uri,  METH_VARARGS },
412
401
    {"get_zc_ip_address",   (PyCFunction)get_zc_ip_address, METH_VARARGS },
413
402
    {"make_par_uri",        (PyCFunction)make_par_uri,  METH_VARARGS },
414
 
    {"handle_smartinstall", (PyCFunction)handle_smartinstall,  METH_VARARGS },
415
403
    { NULL, NULL }
416
404
};
417
405
 
498
486
    insstr(d, "HPMUD_S_WIFI_CHANNEL", HPMUD_S_WIFI_CHANNEL);
499
487
    insstr(d, "HPMUD_S_MARVELL_FAX_CHANNEL", HPMUD_S_MARVELL_FAX_CHANNEL);
500
488
    insstr(d, "HPMUD_S_LEDM_SCAN", HPMUD_S_LEDM_SCAN);
 
489
    insstr(d, "HPMUD_S_MARVELL_EWS_CHANNEL", HPMUD_S_MARVELL_EWS_CHANNEL);
501
490
 
502
491
    // Max buffer size
503
492
    insint(d, "HPMUD_BUFFER_SIZE", HPMUD_BUFFER_SIZE);