aboutsummaryrefslogtreecommitdiff
path: root/liveapi/liveapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'liveapi/liveapi.h')
-rw-r--r--liveapi/liveapi.h15
1 files changed, 15 insertions, 0 deletions
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 <cjson/cJSON.h>
+
+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