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 %typemap
(default
) bool passthru
{
21 // printf
("SWIG pm3 constructor, get current pm3\n");
22 pm3_device_t
* p
= pm3_get_current_dev
();
23 p-
>script_embedded
= 1;
27 // printf
("SWIG pm3 constructor with port, open pm3\n");
28 pm3_device_t
* p
= pm3_open
(port
);
29 p-
>script_embedded
= 0;
33 if
($self-
>script_embedded
) {
34 // printf
("SWIG pm3 destructor, nothing to do\n");
36 // printf
("SWIG pm3 destructor, close pm3\n");
40 int console
(char
*cmd
, bool passthru
= false
);
41 char const
* const name
;
42 char const
* const grabbed_output
;
45 //%nodefaultctor device
;
46 //%nodefaultdtor device
;
47 /* Parse the header file to generate wrappers
*/