#define JSON_EMPTY "{\"type\":\"empty\"}" // default message
+typedef struct list {
+ char *line;
+ struct list *next;
+} list;
+
typedef struct ev_io_ws {
ev_io w; // input watcher
struct lws_context *context;
+ list *lines;
char *text; // input buffer pointer
char *pos; // input buffer current position pointer
} ev_io_ws;