4 #include <systemd/sd-event.h>
5 #include <json-c/json.h>
8 #include "afb-ws-client.h"
14 void requestSurface(const char *label);
15 void activateSurface(const char *label);
16 void deactivateSurface(const char *label);
17 void endDraw(const char *label);
20 void call(const char *api, const char *verb, const char *object);
21 void emitSignalOrCall(const char *api, const char *verb, const char *object);
22 void event(const char *event, const char *object);
23 void onCall(void *closure, struct afb_wsj1 *wsj1);
24 void onEvent(void *closure, const char *event, struct afb_wsj1_msg *msg);
25 void onHangup(void *closure, struct afb_wsj1 *wsj1);
26 void onReply(void *closure, struct afb_wsj1_msg *msg);
28 struct afb_wsj1 *wsj1;
30 const char *wmURI = "ws://localhost:1700/api?wm";
31 const char *wmAPI = "winman";