4 #include <systemd/sd-event.h>
9 #include <json-c/json.h>
12 #include "afb-ws-client.h"
19 AFBClient(const AFBClient& that) = delete;
23 static AFBClient &instance()
30 void requestSurface(const char *label);
31 void activateSurface(const char *label);
32 void deactivateSurface(const char *label);
33 void endDraw(const char *label);
35 static void onCall(void *closure, const char *api, const char *verb, struct afb_wsj1_msg *msg);
36 static void onEvent(void *closure, const char *event, struct afb_wsj1_msg *msg);
37 static void onHangup(void *closure, struct afb_wsj1 *wsj1);
38 static void onReply(void *closure, struct afb_wsj1_msg *msg);
39 static void onRequestSurfaceReply(void *closure, struct afb_wsj1_msg *msg);
42 void call(const char *api, const char *verb, const char *object);
43 void event(const char *event, const char *object);
45 struct afb_wsj1 *wsj1;
46 struct afb_wsj1_itf itf;
49 static const char *wmURI;
50 static const char *wmAPI;