summaryrefslogtreecommitdiffstats
path: root/python-ethtool/netlink.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2014-01-09 19:50:05 +0100
committerDavid Sommerseth <davids@redhat.com>2014-01-09 19:50:05 +0100
commit8156c8880b5148fe2ea19950b2229e1bb80b431c (patch)
tree1a4dac301e3f58fac281bdad8f2f2fde0d859e82 /python-ethtool/netlink.c
parenta5308a1856bbf5268b9f51c87ec3da032c371a6f (diff)
downloadpython-ethtool-8156c8880b5148fe2ea19950b2229e1bb80b431c.tar.gz
python-ethtool-8156c8880b5148fe2ea19950b2229e1bb80b431c.tar.xz
python-ethtool-8156c8880b5148fe2ea19950b2229e1bb80b431c.zip
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 <davids@redhat.com>
Diffstat (limited to 'python-ethtool/netlink.c')
-rw-r--r--python-ethtool/netlink.c8
1 files changed, 4 insertions, 4 deletions
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;