diff options
author | Matt Wilson <msw@redhat.com> | 2002-07-17 13:15:31 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-07-17 13:15:31 +0000 |
commit | 14f76ec3d6851d95009c891dc86083d28e9b2ccc (patch) | |
tree | a5f66f5ce150631f2bb59f73b8d7eae798c32427 /isys/isys.c | |
parent | 3365968c0067cdd781efe666222cb84ee9434afd (diff) | |
download | anaconda-14f76ec3d6851d95009c891dc86083d28e9b2ccc.tar.gz anaconda-14f76ec3d6851d95009c891dc86083d28e9b2ccc.tar.xz anaconda-14f76ec3d6851d95009c891dc86083d28e9b2ccc.zip |
implement summit test
Diffstat (limited to 'isys/isys.c')
-rw-r--r-- | isys/isys.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/isys/isys.c b/isys/isys.c index 3801f9b2c..00d25dfa7 100644 --- a/isys/isys.c +++ b/isys/isys.c @@ -63,6 +63,7 @@ static PyObject * makeDevInode(PyObject * s, PyObject * args); static PyObject * doMknod(PyObject * s, PyObject * args); static PyObject * smpAvailable(PyObject * s, PyObject * args); static PyObject * htAvailable(PyObject * s, PyObject * args); +static PyObject * summitAvailable(PyObject * s, PyObject * args); static PyObject * createProbedList(PyObject * s, PyObject * args); static PyObject * doChroot(PyObject * s, PyObject * args); static PyObject * doCheckBoot(PyObject * s, PyObject * args); @@ -130,6 +131,7 @@ static PyMethodDef isysModuleMethods[] = { { "mount", (PyCFunction) doMount, METH_VARARGS, NULL }, { "smpavailable", (PyCFunction) smpAvailable, METH_VARARGS, NULL }, { "htavailable", (PyCFunction) htAvailable, METH_VARARGS, NULL }, + { "summitavailable", (PyCFunction) summitAvailable, METH_VARARGS, NULL }, { "umount", (PyCFunction) doUMount, METH_VARARGS, NULL }, { "confignetdevice", (PyCFunction) doConfigNetDevice, METH_VARARGS, NULL }, { "pumpnetdevice", (PyCFunction) doPumpNetDevice, METH_VARARGS, NULL }, @@ -779,6 +781,14 @@ static PyObject * htAvailable(PyObject * s, PyObject * args) { return Py_BuildValue("i", detectHT()); } +static PyObject * summitAvailable(PyObject * s, PyObject * args) { + int result; + + if (!PyArg_ParseTuple(args, "")) return NULL; + + return Py_BuildValue("i", detectSummit()); +} + void init_isys(void) { PyObject * m, * d; |