pm3_console() in Python/Lua/C: replace passthru by capture and quiet

This commit is contained in:
Philippe Teuwen committed 2024-10-29 21:13:38 +01:00
1 parent 57ec287ab0
commit de96479d80
16 files changed
+4341 -4193

No files matched your search

+6 -3
View File
@@ -11,8 +11,11 @@
#ifdef PYWRAP
#include <Python.h>
%typemap(default) bool passthru {
$1 = Py_False;
%typemap(default) bool capture {
$1 = Py_True;
}
%typemap(default) bool quiet {
$1 = Py_True;
}
#endif
typedef struct {
@@ -37,7 +40,7 @@ typedef struct {
pm3_close($self);
}
}
int console(char *cmd, bool passthru = false);
int console(char *cmd, bool capture = true, bool quiet = true);
char const * const name;
char const * const grabbed_output;
}