From d10055619793bf8ff74814f4126ddb8ba5ee913f Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 20 Dec 2013 01:08:46 +0100 Subject: Get rid of the internal IP address lists With the new structure, these pointers are of no use. Kick them out. The result of this is that get_etherinfo_address() now returns a Python object which contains a list of IP address objects. Signed-off-by: David Sommerseth --- python-ethtool/etherinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python-ethtool/etherinfo.h') diff --git a/python-ethtool/etherinfo.h b/python-ethtool/etherinfo.h index 3d4eb96..2fc602e 100644 --- a/python-ethtool/etherinfo.h +++ b/python-ethtool/etherinfo.h @@ -20,7 +20,7 @@ typedef enum {NLQRY_ADDR4, NLQRY_ADDR6} nlQuery; /**< Supported query types in the etherinfo code */ int get_etherinfo_link(etherinfo_py *data); -int get_etherinfo_address(etherinfo_py *data, nlQuery query); +PyObject * get_etherinfo_address(etherinfo_py *self, nlQuery query); void free_etherinfo(struct etherinfo *ptr); int open_netlink(etherinfo_py *); -- cgit