summaryrefslogtreecommitdiffstats
path: root/isys/isys.c
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-08-25 16:58:01 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-08-25 16:58:01 -1000
commitccaf2b3c42b1fefb10b1a9986da2e6bb718048fd (patch)
tree25e7f76bf2ba3909c920eac13b30de715fe98c39 /isys/isys.c
parent246b9bd30381153e5dc72a2cbac8f2d534c5ee2b (diff)
downloadanaconda-ccaf2b3c42b1fefb10b1a9986da2e6bb718048fd.tar.gz
anaconda-ccaf2b3c42b1fefb10b1a9986da2e6bb718048fd.tar.xz
anaconda-ccaf2b3c42b1fefb10b1a9986da2e6bb718048fd.zip
Add getDeviceProperties() and rewrite getMacAddress()
Created isys.getDeviceProperties() that returns a D-Bus properties interface to the caller for the specified network device. Rewrote getMacAddress() to no longer rely on the iface_mac2str() function.
Diffstat (limited to 'isys/isys.c')
-rw-r--r--isys/isys.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/isys/isys.c b/isys/isys.c
index eecf1f8c4..21592cde9 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -125,7 +125,6 @@ static PyObject * py_bind_textdomain_codeset(PyObject * o, PyObject * args);
static PyObject * py_getDasdPorts(PyObject * s, PyObject * args);
static PyObject * py_isUsableDasd(PyObject * s, PyObject * args);
static PyObject * py_isLdlDasd(PyObject * s, PyObject * args);
-static PyObject * doGetMacAddress(PyObject * s, PyObject * args);
#ifdef USESELINUX
static PyObject * doMatchPathContext(PyObject * s, PyObject * args);
static PyObject * doSetFileContext(PyObject * s, PyObject * args);
@@ -175,7 +174,6 @@ static PyMethodDef isysModuleMethods[] = {
{ "getDasdPorts", (PyCFunction) py_getDasdPorts, METH_VARARGS, NULL},
{ "isUsableDasd", (PyCFunction) py_isUsableDasd, METH_VARARGS, NULL},
{ "isLdlDasd", (PyCFunction) py_isLdlDasd, METH_VARARGS, NULL},
- { "getMacAddress", (PyCFunction) doGetMacAddress, METH_VARARGS, NULL},
#ifdef USESELINUX
{ "matchPathContext", (PyCFunction) doMatchPathContext, METH_VARARGS, NULL },
{ "setFileContext", (PyCFunction) doSetFileContext, METH_VARARGS, NULL },
@@ -952,18 +950,6 @@ static PyObject * getFramebufferInfo(PyObject * s, PyObject * args) {
return Py_BuildValue("(iii)", fb.xres, fb.yres, fb.bits_per_pixel);
}
-static PyObject * doGetMacAddress(PyObject * s, PyObject * args) {
- char *dev;
- char *ret;
-
- if (!PyArg_ParseTuple(args, "s", &dev))
- return NULL;
-
- ret = iface_mac2str(dev);
-
- return Py_BuildValue("s", ret);
-}
-
#ifdef USESELINUX
static PyObject * doMatchPathContext(PyObject * s, PyObject * args) {
char *fn, *buf = NULL;