4 #include <systemd/sd-event.h>
8 #include <json-c/json.h>
11 #include "afb-ws-client.h"
17 AFBClient(const AFBClient& that) = delete;
21 static AFBClient &instance()
28 int requestSurface(const char *label);
29 void activateSurface(const char *label);
30 void deactivateSurface(const char *label);
31 void endDraw(const char *label);
32 int dispatch(uint64_t timeout);
34 static void onCall(void *closure, const char *api, const char *verb, struct afb_wsj1_msg *msg);
35 static void onEvent(void *closure, const char *event, struct afb_wsj1_msg *msg);
36 static void onHangup(void *closure, struct afb_wsj1 *wsj1);
37 static void onReply(void *closure, struct afb_wsj1_msg *msg);
40 void call(const char *api, const char *verb, const char *object);
41 void event(const char *event, const char *object);
43 struct afb_wsj1 *wsj1;
44 struct afb_wsj1_itf itf;
47 static const char *wmURI;
48 static const char *wmAPI;