aboutsummaryrefslogtreecommitdiff
path: root/liveapi/liveapi.h
blob: 4383c2670a1199010d4e752efe7aec202e34a918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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