#pragma once #include #ifdef __cplusplus #include extern "C" { #endif #define AFB_BINDING_VERSION 2 #include #ifdef __cplusplus }; #endif void onEvent(const char *event, struct json_object *object); int init_service(); int ticked(sd_event_source *source, uint64_t t, void *data);