summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo_struct.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2013-12-20 01:46:01 +0100
committerDavid Sommerseth <davids@redhat.com>2013-12-20 01:46:01 +0100
commitd4bc3a50bb6124a0000879f27d43e9685934d682 (patch)
tree90bba459968245d81f7b76a67d8f6e6b20d1b889 /python-ethtool/etherinfo_struct.h
parent50704634080bb653e899ff4a1d730968fb731398 (diff)
downloadpython-ethtool-d4bc3a50bb6124a0000879f27d43e9685934d682.tar.gz
python-ethtool-d4bc3a50bb6124a0000879f27d43e9685934d682.tar.xz
python-ethtool-d4bc3a50bb6124a0000879f27d43e9685934d682.zip
Make the device string a python object as well
This will simplify to "pythonize" struct etherinfo further. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool/etherinfo_struct.h')
-rw-r--r--python-ethtool/etherinfo_struct.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/python-ethtool/etherinfo_struct.h b/python-ethtool/etherinfo_struct.h
index ffa6254..83d06fe 100644
--- a/python-ethtool/etherinfo_struct.h
+++ b/python-ethtool/etherinfo_struct.h
@@ -33,7 +33,7 @@
*
*/
struct etherinfo {
- char *device; /**< Device name */
+ PyObject *device; /**< Device name */
int index; /**< NETLINK index reference */
PyObject *hwaddress; /**< string: HW address / MAC address of device */
};