From e3036b284d41977f240592ebb4148e4283176682 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 17 Dec 2013 21:59:17 +0100 Subject: Kick out struct etherinfo_obj_data This simplifies and clarifies the object/struct relations a bit better. Signed-off-by: David Sommerseth --- python-ethtool/etherinfo_struct.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'python-ethtool/etherinfo_struct.h') 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; -- cgit