diff options
author | David Sommerseth <davids@redhat.com> | 2009-09-04 19:36:23 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-09-04 19:36:23 +0200 |
commit | 0be405b9c6245b59489b7e6987af0dc56ded1406 (patch) | |
tree | 2850c36fde83eae17bb721343d0db9d260039e77 /python-ethtool/etherinfo_struct.h | |
parent | e957168cde93978d62fc9908325d32ed432fe33e (diff) | |
download | python-ethtool-0be405b9c6245b59489b7e6987af0dc56ded1406.tar.gz python-ethtool-0be405b9c6245b59489b7e6987af0dc56ded1406.tar.xz python-ethtool-0be405b9c6245b59489b7e6987af0dc56ded1406.zip |
First cut at a python etherinfo class in C. Does nothing useful yet.
Diffstat (limited to 'python-ethtool/etherinfo_struct.h')
-rw-r--r-- | python-ethtool/etherinfo_struct.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/python-ethtool/etherinfo_struct.h b/python-ethtool/etherinfo_struct.h new file mode 100644 index 0000000..641dcb4 --- /dev/null +++ b/python-ethtool/etherinfo_struct.h @@ -0,0 +1,23 @@ +/** + * @file etherinfo_struct.h + * @author David Sommerseth <dsommers@wsdsommers.usersys.redhat.com> + * @date Fri Sep 4 19:06:06 2009 + * + * @brief Contains the internal ethtool.etherinfo data structure + * + */ + +#ifndef _ETHERINFO_STRUCT_H +#define _ETHERINFO_STRUCT_H + +/** + * Contains the internal data structure of the + * ethtool.etherinfo object. + * + */ +typedef struct { + PyObject_HEAD + struct etherinfo *info; /**< Contains information about one ethernet device */ +} etherinfo_py; + +#endif |