aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/python.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/python.h')
-rw-r--r--backends/python.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/python.h b/backends/python.h
index 8ca12f9..539389b 100644
--- a/backends/python.h
+++ b/backends/python.h
@@ -16,6 +16,7 @@ typedef struct /*_python_channel_data*/ {
PyObject* handler;
double in;
double out;
+ uint8_t mark;
} mmpython_channel;
typedef struct /*_mmpy_registered_socket*/ {
@@ -41,4 +42,8 @@ typedef struct /*_python_instance_data*/ {
size_t channels;
mmpython_channel* channel;
mmpython_channel* current_channel;
+
+ char* default_handler;
+ PyObject* handler;
+ PyObject* cleanup_handler;
} python_instance_data;