WIP: dispatch sd_events, but break qt event handling
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Mon, 28 Aug 2017 11:14:56 +0000 (13:14 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Thu, 14 Sep 2017 12:04:40 +0000 (14:04 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
AFBClient.cpp
AFBClient.h

index 6f66a5f..fdfeca8 100644 (file)
@@ -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);
index 3961baf..c816e97 100644 (file)
@@ -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);