diff options
| author | David Sommerseth <davids@redhat.com> | 2013-12-17 21:59:17 +0100 |
|---|---|---|
| committer | David Sommerseth <davids@redhat.com> | 2013-12-17 21:59:17 +0100 |
| commit | e3036b284d41977f240592ebb4148e4283176682 (patch) | |
| tree | 10a6c2557a4a6d34fba041f3ad3ff0fe15a78899 /python-ethtool/etherinfo_struct.h | |
| parent | 4c301d903dfc3d011e673a8772d4ac75e99bbd2a (diff) | |
| download | python-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.h | 13 |
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; |
