From b80e65903258d71ac7be0f0775db15aa096a4b54 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 3 Aug 2010 10:30:23 +0200 Subject: Get rid of not needed struct wrapping The struct nl_handle was wrapped inside struct _nlconnection. This is really not needed if open_netlink() and close_netlink() functions uses "pointer's pointer" (struct nl_handle **) instead. Removes also the need to declare a static struct _nlconnection, as the global nlconnection variable can now be a pointer as well. Signed-off-by: David Sommerseth --- python-ethtool/etherinfo_struct.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'python-ethtool/etherinfo_struct.h') diff --git a/python-ethtool/etherinfo_struct.h b/python-ethtool/etherinfo_struct.h index d627ba6..b1d453f 100644 --- a/python-ethtool/etherinfo_struct.h +++ b/python-ethtool/etherinfo_struct.h @@ -51,13 +51,6 @@ struct ipv6address { struct ipv6address *next; /**< Pointer to next configured IPv6 address */ }; -/** - * NETLINK connection handle and related information to be shared - * among all the instantiated etherinfo objects. - */ -struct _nlconnection { - struct nl_handle *nlrt_handle; -}; /** * Contains the internal data structure of the @@ -65,7 +58,7 @@ struct _nlconnection { * */ struct etherinfo_obj_data { - struct _nlconnection *nlc; /**< Contains NETLINK connection info */ + struct nl_handle *nlc; /**< Contains NETLINK connection info */ struct etherinfo *ethinfo; /**< Contains info about our current interface */ }; -- cgit