Helper function to allow net.GetNetClassName()
(cherry picked from commit 734d3667a8
)
This commit is contained in:
parent
11788d2f39
commit
2358ff6f07
|
@ -10,6 +10,15 @@
|
||||||
#include <netinfo.h>
|
#include <netinfo.h>
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%extend NETINFO_ITEM
|
||||||
|
{
|
||||||
|
%pythoncode
|
||||||
|
%{
|
||||||
|
def GetNetClassName(self):
|
||||||
|
return self.GetNetClassSlow().GetName()
|
||||||
|
%}
|
||||||
|
}
|
||||||
|
|
||||||
// http://swig.10945.n7.nabble.com/std-containers-and-pointers-td3728.html
|
// http://swig.10945.n7.nabble.com/std-containers-and-pointers-td3728.html
|
||||||
%{
|
%{
|
||||||
namespace swig {
|
namespace swig {
|
||||||
|
|
Loading…
Reference in New Issue