From 820e76108bc85051d64431495d70f27379756cc8 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 12 Sep 2019 18:05:01 +0200 Subject: Added liveapi support, and the maar tool (mark all as read) --- liveapi/liveapi.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 liveapi/liveapi.h (limited to 'liveapi/liveapi.h') diff --git a/liveapi/liveapi.h b/liveapi/liveapi.h new file mode 100644 index 0000000..4383c26 --- /dev/null +++ b/liveapi/liveapi.h @@ -0,0 +1,15 @@ +#ifndef LIVEAPI_LIVEAPI_H_ +#define LIVEAPI_LIVEAPI_H_ + +#include + +typedef void (*liveapi_stdin_cb) (const char * input); + +void liveapi_activate_stdin(liveapi_stdin_cb * cb); +void liveapi_send_json(size_t id, cJSON* json); +char liveapi_init(const char * authToken); +char liveapi_loop(void); +char liveapi_step(void); +void liveapi_clean(void); + +#endif -- cgit v1.2.3