3 /* Include the header in the wrapper code
*/
8 /* Strip
"pm3_" from API functions for SWIG
*/
9 %rename
("%(strip:[pm3_])s") "";
10 %feature
("immutable","1") pm3_current_dev
;
14 // printf
("SWIG pm3 constructor, get current pm3\n");
15 pm3_device
* p
= pm3_get_current_dev
();
16 p-
>script_embedded
= 1;
20 // printf
("SWIG pm3 constructor with port, open pm3\n");
21 pm3_device
* p
= pm3_open
(port
);
22 p-
>script_embedded
= 0;
26 if
($self-
>script_embedded
) {
27 // printf
("SWIG pm3 destructor, nothing to do\n");
29 // printf
("SWIG pm3 destructor, close pm3\n");
33 int console
(char
*cmd
);
34 char const
* const name
;
37 //%nodefaultctor device
;
38 //%nodefaultdtor device
;
39 /* Parse the header file to generate wrappers
*/