Browse Source

swig: rename funcs that caused overload errors in python for hmtrp, wt5001

Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Zion Orent 9 years ago
parent
commit
66aaa97955
2 changed files with 8 additions and 0 deletions
  1. 3
    0
      src/hmtrp/pyupm_hmtrp.i
  2. 5
    0
      src/wt5001/pyupm_wt5001.i

+ 3
- 0
src/hmtrp/pyupm_hmtrp.i View File

6
 %include "../carrays_uint16_t.i"
6
 %include "../carrays_uint16_t.i"
7
 %include "../carrays_uint32_t.i"
7
 %include "../carrays_uint32_t.i"
8
 
8
 
9
+%rename("getModSignalStrengthNoParam")  getModSignalStrength();
10
+%rename("getRFSignalStrengthNoParam") getRFSignalStrength();
11
+
9
 %feature("autodoc", "3");
12
 %feature("autodoc", "3");
10
 
13
 
11
 %include "hmtrp.h"
14
 %include "hmtrp.h"

+ 5
- 0
src/wt5001/pyupm_wt5001.i View File

5
 %include "../carrays_uint8_t.i"
5
 %include "../carrays_uint8_t.i"
6
 %include "../carrays_uint16_t.i"
6
 %include "../carrays_uint16_t.i"
7
 
7
 
8
+%rename("getVolumeNoParam")  getVolume();
9
+%rename("getPlayStateNoParam") getPlayState();
10
+%rename("getNumFilesOneParam")  getNumFiles(WT5001_PLAYSOURCE_T psrc);
11
+%rename("getCurrentFileNoParam") getCurrentFile();
12
+
8
 %feature("autodoc", "3");
13
 %feature("autodoc", "3");
9
 
14
 
10
 %{
15
 %{