4 #include <systemd/sd-event.h>
7 #include <json-c/json.h>
10 #include "afb-ws-client.h"
18 void requestSurface(const char *label);
19 void activateSurface(const char *label);
20 void deactivateSurface(const char *label);
21 void endDraw(const char *label);
24 void call(const char *api, const char *verb, const char *object);
25 void emitSignalOrCall(const char *api, const char *verb, const char *object);
26 void event(const char *event, const char *object);
27 void onCall(void *closure, struct afb_wsj1 *wsj1);
28 void onEvent(void *closure, const char *event, struct afb_wsj1_msg *msg);
29 void onHangup(void *closure, struct afb_wsj1 *wsj1);
30 void onReply(void *closure, struct afb_wsj1_msg *msg);
32 struct afb_wsj1 *wsj1;
34 const char *wmURI = "ws://localhost:1700/api?wm";
35 const char *wmAPI = "winman";