X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=AFBClient.h;h=f42aeea99ae1bad0989c2a6abbd8160f63b4456b;hb=6766079f68f6a7e2ccdd68b36e9eb206229dd4f7;hp=6625c445ca977c3c6b9bfbbec499e448b68fbd76;hpb=49fe14f956c0bef44c047b7d6fc98412abaedace;p=staging%2Fwindowmanager.git diff --git a/AFBClient.h b/AFBClient.h index 6625c44..f42aeea 100644 --- a/AFBClient.h +++ b/AFBClient.h @@ -3,13 +3,6 @@ #include -extern "C" -{ - struct json_object; - struct afb_wsj1; - struct sd_event; -} - class AFBClient { AFBClient(); @@ -31,7 +24,7 @@ public: static AFBClient &instance(); int init(int port, char const *token); - int dispatch(uint64_t timeout); + int dispatch(); // WM API int requestSurface(const char *label); @@ -42,8 +35,9 @@ public: void set_event_handler(enum EventType et, std::function f); + struct Impl; + private: - struct afb_wsj1 *wsj1; - struct sd_event *loop; + Impl *d; }; #endif // AFBCLIENT_H