X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=AFBClient.h;h=a31479c202ba558b3c01f885b15e5f7a1111aa9b;hb=b8ec6408f237065d6f87a23bcfe6c20ac56528bf;hp=d776057a4fa31380f2a087f9f3af71665ea75f84;hpb=a03087dcce0dfbd993058614e9becd34605d81a3;p=staging%2Fwindowmanager.git diff --git a/AFBClient.h b/AFBClient.h index d776057..a31479c 100644 --- a/AFBClient.h +++ b/AFBClient.h @@ -42,10 +42,13 @@ public: int deactivateSurface(const char *label); int endDraw(const char *label); - void set_event_handler(enum EventType et, std::function f); + void set_event_handler(enum EventType et, + std::function f); private: - void call(const char *api, const char *verb, const char *object); + /// object will be json_object_put + int call(const char *verb, json_object *object, + std::function onReply); struct afb_wsj1 *wsj1; struct afb_wsj1_itf itf;