// ====================================================================================== // cgo compilation (for desktop platforms and local tests) // ====================================================================================== #include #include #include #include "_cgo_export.h" typedef void (*callback)(const char *jsonEvent); callback gCallback = 0; bool StatusServiceSignalEvent(const char *jsonEvent) { if (gCallback) { gCallback(jsonEvent); } else { NotifyNode((char *)jsonEvent); // re-send notification back to status node } return true; } void SetEventCallback(void *cb) { gCallback = (callback)cb; }