summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo.h
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/etherinfo.h
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/etherinfo.h')
-rw-r--r--python-ethtool/etherinfo.h8
1 files changed, 4 insertions, 4 deletions
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