summaryrefslogtreecommitdiff
path: root/exports/c/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'exports/c/common.h')
-rw-r--r--exports/c/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/exports/c/common.h b/exports/c/common.h
new file mode 100644
index 0000000..068ad4c
--- /dev/null
+++ b/exports/c/common.h
@@ -0,0 +1,3 @@
+typedef void (*PythonCB)(const char* name, int oldstate, int newstate, void* data);
+
+void call_callback(PythonCB callback, const char *name, int oldstate, int newstate, void* data);