From 8156c8880b5148fe2ea19950b2229e1bb80b431c Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 9 Jan 2014 19:50:05 +0100 Subject: cleanup: Rename etherinfo_py and ethtool_etherinfo_Type Use PyEtherInfo and PyEtherInfoType the base names, to more easily see their relation, and more clearly indicate they are Python objects. Also remove an initialisation of PyEtherInfo/etherinfo_py not needed any more. Signed-off-by: David Sommerseth --- python-ethtool/etherinfo.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python-ethtool/etherinfo.h') diff --git a/python-ethtool/etherinfo.h b/python-ethtool/etherinfo.h index 82b491f..d966819 100644 --- a/python-ethtool/etherinfo.h +++ b/python-ethtool/etherinfo.h @@ -19,11 +19,11 @@ typedef enum {NLQRY_ADDR4, NLQRY_ADDR6} nlQuery; /**< Supported query types in the etherinfo code */ -int get_etherinfo_link(etherinfo_py *data); -PyObject * get_etherinfo_address(etherinfo_py *self, nlQuery query); +int get_etherinfo_link(PyEtherInfo *data); +PyObject * get_etherinfo_address(PyEtherInfo *self, nlQuery query); -int open_netlink(etherinfo_py *); +int open_netlink(PyEtherInfo *); struct nl_sock * get_nlc(); -void close_netlink(etherinfo_py *); +void close_netlink(PyEtherInfo *); #endif -- cgit