SWIGPYTHON: Apply unsigned int to uints for python

To handle uint data types in python bindings, apply unsigned int
globally.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2018-03-19 09:18:54 -04:00
parent 757683b2ca
commit fc56e56048

View File

@ -46,6 +46,11 @@ void cleanUp();
// Disable nested struct warnings
#pragma SWIG nowarn=312,325
#if SWIGPYTHON
/* Apply all uints as 'unsigned int' for python */
%apply unsigned int {uint};
#endif
/* The pyupm_doxy2swig.i file is created via doxy2swig.py from doxygen xml
* output during doc build. This file is used by swig to provide native
* python module documentation.