diff options
author | David Sommerseth <davids@redhat.com> | 2014-01-09 19:50:05 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2014-01-09 19:50:05 +0100 |
commit | 8156c8880b5148fe2ea19950b2229e1bb80b431c (patch) | |
tree | 1a4dac301e3f58fac281bdad8f2f2fde0d859e82 /python-ethtool/etherinfo_obj.h | |
parent | a5308a1856bbf5268b9f51c87ec3da032c371a6f (diff) | |
download | python-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_obj.h')
-rw-r--r-- | python-ethtool/etherinfo_obj.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python-ethtool/etherinfo_obj.h b/python-ethtool/etherinfo_obj.h index ce77f79..6047f11 100644 --- a/python-ethtool/etherinfo_obj.h +++ b/python-ethtool/etherinfo_obj.h @@ -28,11 +28,11 @@ #include <Python.h> #include "etherinfo_struct.h" -void _ethtool_etherinfo_dealloc(etherinfo_py *); +void _ethtool_etherinfo_dealloc(PyEtherInfo *); PyObject *_ethtool_etherinfo_new(PyTypeObject *, PyObject *, PyObject *); -int _ethtool_etherinfo_init(etherinfo_py *, PyObject *, PyObject *); -PyObject *_ethtool_etherinfo_getter(etherinfo_py *, PyObject *); -int _ethtool_etherinfo_setter(etherinfo_py *, PyObject *, PyObject *); -PyObject *_ethtool_etherinfo_str(etherinfo_py *self); +int _ethtool_etherinfo_init(PyEtherInfo *, PyObject *, PyObject *); +PyObject *_ethtool_etherinfo_getter(PyEtherInfo *, PyObject *); +int _ethtool_etherinfo_setter(PyEtherInfo *, PyObject *, PyObject *); +PyObject *_ethtool_etherinfo_str(PyEtherInfo *self); #endif |