summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo_struct.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2010-08-03 10:30:23 +0200
committerDavid Sommerseth <davids@redhat.com>2010-08-03 10:30:23 +0200
commitb80e65903258d71ac7be0f0775db15aa096a4b54 (patch)
treeb21b10b5a86f96b98312b7d8daf3ab3dd5c0cce2 /python-ethtool/etherinfo_struct.h
parent19be403f729d3064259ca17e57ef24a1cc2ff81b (diff)
downloadpython-ethtool-b80e65903258d71ac7be0f0775db15aa096a4b54.tar.gz
python-ethtool-b80e65903258d71ac7be0f0775db15aa096a4b54.tar.xz
python-ethtool-b80e65903258d71ac7be0f0775db15aa096a4b54.zip
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 <davids@redhat.com>
Diffstat (limited to 'python-ethtool/etherinfo_struct.h')
-rw-r--r--python-ethtool/etherinfo_struct.h9
1 files changed, 1 insertions, 8 deletions
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 */
};