diff options
| author | David Sommerseth <davids@redhat.com> | 2011-01-19 14:58:02 +0100 |
|---|---|---|
| committer | David Sommerseth <davids@redhat.com> | 2011-01-19 14:58:02 +0100 |
| commit | e842b88809a9e2949be6aa8c63dc29b152f7bb3b (patch) | |
| tree | b166b368c2d32dd9a219b213d4f43f5cac825856 /python-ethtool | |
| parent | 2347ee3736a9c3e753b5f98aff7b1089269fe895 (diff) | |
| download | python-ethtool-e842b88809a9e2949be6aa8c63dc29b152f7bb3b.tar.gz python-ethtool-e842b88809a9e2949be6aa8c63dc29b152f7bb3b.tar.xz python-ethtool-e842b88809a9e2949be6aa8c63dc29b152f7bb3b.zip | |
Added ethtool.version string constant
This is useful to identify the python-ethtool version at runtime.
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool')
| -rw-r--r-- | python-ethtool/ethtool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c index feb6917..a29f052 100644 --- a/python-ethtool/ethtool.c +++ b/python-ethtool/ethtool.c @@ -1058,5 +1058,6 @@ PyMODINIT_FUNC initethtool(void) PyModule_AddIntConstant(m, "IFF_DYNAMIC", IFF_DYNAMIC); /* Dialup device with changing addresses. */ PyModule_AddIntConstant(m, "AF_INET", AF_INET); /* IPv4 interface */ PyModule_AddIntConstant(m, "AF_INET6", AF_INET6); /* IPv6 interface */ + PyModule_AddStringConstant(m, "version", "python-ethtool v" VERSION); } |
