Helper function to allow net.GetNetClassName()

This commit is contained in:
mitxela 2023-02-21 23:40:56 +00:00 committed by Jon Evans
parent 182abd4652
commit 734d3667a8
1 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,15 @@
#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
%{
namespace swig {