2016-09-21 01:07:41 +00:00
|
|
|
|
2016-09-22 14:57:45 +00:00
|
|
|
%warnfilter(325) NETINFO_MAPPING::iterator;
|
2016-09-21 21:26:44 +00:00
|
|
|
%ignore NETINFO_MAPPING; // no code generation for this class
|
|
|
|
|
2018-05-24 07:43:04 +00:00
|
|
|
%feature("notabstract") NETINFO_ITEM;
|
|
|
|
|
2018-01-30 14:34:09 +00:00
|
|
|
%include netinfo.h
|
2016-09-21 21:26:44 +00:00
|
|
|
|
2016-09-21 01:07:41 +00:00
|
|
|
%{
|
2018-01-30 14:34:09 +00:00
|
|
|
#include <netinfo.h>
|
2016-09-21 01:07:41 +00:00
|
|
|
%}
|
2016-09-21 19:08:04 +00:00
|
|
|
|
2023-02-21 23:40:56 +00:00
|
|
|
%extend NETINFO_ITEM
|
|
|
|
{
|
|
|
|
%pythoncode
|
|
|
|
%{
|
|
|
|
def GetNetClassName(self):
|
|
|
|
return self.GetNetClassSlow().GetName()
|
|
|
|
%}
|
|
|
|
}
|
|
|
|
|
2016-09-21 19:08:04 +00:00
|
|
|
// http://swig.10945.n7.nabble.com/std-containers-and-pointers-td3728.html
|
|
|
|
%{
|
|
|
|
namespace swig {
|
|
|
|
template <> struct traits<NETINFO_ITEM> {
|
|
|
|
typedef pointer_category category;
|
|
|
|
static const char* type_name() { return "NETINFO_ITEM"; }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
%}
|