VST3: fetch midi mappings all at once, use it for note/sound-off
[carla.git] / source / tests.old / ctypes-test.c
blobf088a5aca11573a010abba42dce4c11d94314099
1 #include <assert.h>
2 #include <stdio.h>
4 typedef void (*PythonSideFn)(int checker);
5 __attribute__ ((visibility("default"))) void set_python_side_fn(PythonSideFn fn);
6 __attribute__ ((visibility("default"))) void call_python_side_fn(void);
8 PythonSideFn pyFn = NULL;
10 void set_python_side_fn(PythonSideFn fn)
12 printf("set_python_side_fn(%p)\n", fn);
13 pyFn = fn;
16 void call_python_side_fn(void)
18 assert(pyFn != NULL);
20 printf("going to call python function now, ptr: %p\n", pyFn);
21 pyFn(1337);
22 printf("done!\n");