diff options
-rw-r--r-- | AFBClient.cpp | 4 | ||||
-rw-r--r-- | AFBClient.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/AFBClient.cpp b/AFBClient.cpp index 6f66a5f..fdfeca8 100644 --- a/AFBClient.cpp +++ b/AFBClient.cpp @@ -104,6 +104,10 @@ void AFBClient::activateSurface(const char *label) fflush(stdout); } +int AFBClient::dispatch() { + return sd_event_run(loop, -1); +} + void AFBClient::deactivateSurface(const char *label) { UNUSED(label); diff --git a/AFBClient.h b/AFBClient.h index 3961baf..c816e97 100644 --- a/AFBClient.h +++ b/AFBClient.h @@ -31,6 +31,7 @@ public: void activateSurface(const char *label); void deactivateSurface(const char *label); void endDraw(const char *label); + int dispatch(); static void onCall(void *closure, const char *api, const char *verb, struct afb_wsj1_msg *msg); static void onEvent(void *closure, const char *event, struct afb_wsj1_msg *msg); |