pm3_console() in Python/Lua/C: replace passthru by capture and quiet
This commit is contained in:
1 parent
57ec287ab0
commit
de96479d80
16 files changed
+4341
-4193
No files matched your search
+6
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user