Browse Source

gas: Modifications to js swig file to use appropriate SWIG typemap

Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Sarah Knepper <sarah.knepper@intel.com>
Zion Orent 10 years ago
parent
commit
7c41db4c83
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/gas/jsupm_gas.i

+ 6
- 0
src/gas/jsupm_gas.i View File

@@ -2,6 +2,12 @@
2 2
 %include "../upm.i"
3 3
 %include "../carrays_uint16_t.i"
4 4
 
5
+%typemap(in) uint16_t * {
6
+  void *argp = 0 ;
7
+  int res = SWIG_ConvertPtr($input, &argp,SWIGTYPE_p_uint16Array, 0 |  0 );
8
+  $1 = (uint16_t *)(argp);
9
+}
10
+
5 11
 %include "gas.h"
6 12
 %{
7 13
     #include "gas.h"