summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo_struct.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2013-12-17 21:59:17 +0100
committerDavid Sommerseth <davids@redhat.com>2013-12-17 21:59:17 +0100
commite3036b284d41977f240592ebb4148e4283176682 (patch)
tree10a6c2557a4a6d34fba041f3ad3ff0fe15a78899 /python-ethtool/etherinfo_struct.h
parent4c301d903dfc3d011e673a8772d4ac75e99bbd2a (diff)
downloadpython-ethtool-e3036b284d41977f240592ebb4148e4283176682.tar.gz
python-ethtool-e3036b284d41977f240592ebb4148e4283176682.tar.xz
python-ethtool-e3036b284d41977f240592ebb4148e4283176682.zip
Kick out struct etherinfo_obj_data
This simplifies and clarifies the object/struct relations a bit better. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool/etherinfo_struct.h')
-rw-r--r--python-ethtool/etherinfo_struct.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/python-ethtool/etherinfo_struct.h b/python-ethtool/etherinfo_struct.h
index 31c71c0..cc7b32f 100644
--- a/python-ethtool/etherinfo_struct.h
+++ b/python-ethtool/etherinfo_struct.h
@@ -51,21 +51,12 @@ typedef struct PyNetlinkIPaddress {
extern PyTypeObject ethtool_netlink_ip_address_Type;
/**
- * Contains the internal data structure of the
- * ethtool.etherinfo object.
- *
- */
-struct etherinfo_obj_data {
- struct etherinfo *ethinfo; /**< Contains info about our current interface */
-};
-
-/**
- * A Python object of struct etherinfo_obj_data
+ * The Python object containing information about a single interface
*
*/
typedef struct {
PyObject_HEAD
- struct etherinfo_obj_data *data; /* IPv4 and IPv6 address information, only one element used */
+ struct etherinfo *ethinfo; /**< Information about the interface configuration */
unsigned short nlc_active; /**< Is this instance using NETLINK? */
} etherinfo_py;