diff options
Diffstat (limited to 'exports/exports.go')
| -rw-r--r-- | exports/exports.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/exports/exports.go b/exports/exports.go index 0144500..4f0b865 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -1,13 +1,14 @@ package main /* -#cgo CFLAGS: -I${SRCDIR}/c -#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}/c -#cgo LDFLAGS: -L${SRCDIR}/c -#cgo LDFLAGS: -lcommon - #include <stdlib.h> -#include "c/common.h" + +typedef void (*PythonCB)(const char* name, int oldstate, int newstate, void* data); + +static void call_callback(PythonCB callback, const char *name, int oldstate, int newstate, void* data) +{ + callback(name, oldstate, newstate, data); +} */ import "C" |
