4 #include <systemd/sd-event.h>
9 #include <json-c/json.h>
12 #include "afb-ws-client.h"
21 void requestSurface(const char *label);
22 void activateSurface(const char *label);
23 void deactivateSurface(const char *label);
24 void endDraw(const char *label);
26 static void onCall(void *closure, const char *api, const char *verb, struct afb_wsj1_msg *msg);
27 static void onEvent(void *closure, const char *event, struct afb_wsj1_msg *msg);
28 static void onHangup(void *closure, struct afb_wsj1 *wsj1);
29 static void onReply(void *closure, struct afb_wsj1_msg *msg);
32 void call(const char *api, const char *verb, const char *object);
33 void emitSignalOrCall(const char *api, const char *verb, const char *object);
34 void event(const char *event, const char *object);
36 struct afb_wsj1 *wsj1;
37 struct afb_wsj1_itf itf;
40 static const char *wmURI;
41 static const char *wmAPI;