summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-28 13:14:56 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-14 14:04:40 +0200
commitbd5fbcc6a43098dd28ff0b44ab8ca8a8a724d3b0 (patch)
tree7b0c7dcfb3d8392753495fc8d311837e72e07d17
parent8733e53f7eb82431e6d417ff9f4f38845aecd3b2 (diff)
WIP: dispatch sd_events, but break qt event handling
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r--AFBClient.cpp4
-rw-r--r--AFBClient.h1
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);