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/netlink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python-ethtool/netlink.c') diff --git a/python-ethtool/netlink.c b/python-ethtool/netlink.c index f24b312..9ba8338 100644 --- a/python-ethtool/netlink.c +++ b/python-ethtool/netlink.c @@ -33,11 +33,11 @@ static unsigned int nlconnection_users = 0; /* How many NETLINK users are activ * for each etherinfo object being generated, and it will * keep a separate file descriptor open for each object * - * @param ethi etherinfo_py structure (basically the "self" object) + * @param ethi PyEtherInfo structure (basically the "self" object) * * @return Returns 1 on success, otherwise 0. */ -int open_netlink(etherinfo_py *ethi) +int open_netlink(PyEtherInfo *ethi) { if( !ethi ) { return 0; @@ -93,9 +93,9 @@ struct nl_sock * get_nlc() * Closes the NETLINK connection. This should be called automatically whenever * the corresponding etherinfo object is deleted. * - * @param ethi etherinfo_py structure (basically the "self" object) + * @param ethi PyEtherInfo structure (basically the "self" object) */ -void close_netlink(etherinfo_py *ethi) +void close_netlink(PyEtherInfo *ethi) { if( !ethi || !nlconnection ) { return; -- cgit