AFBClient: implement event handler dispatch
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Mon, 4 Sep 2017 12:47:44 +0000 (14:47 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Thu, 14 Sep 2017 12:04:51 +0000 (14:04 +0200)
commit839032bb4aa57418289d829dd57f66b094ceb700
tree34278303e7060b88fc818dac543d7d409120b558
parent715231c6093c54797d36c1e01667439d0a8741f3
AFBClient: implement event handler dispatch

* requestSurface will store label if successful.
* onEvent calls AFBClient::Impl::event to dispatch the event.
* stripped down onCall and onEvent implementations.
* event names from onEvent are matched on-the-fly to
  AFBClient::EventType.
* requestSurface with a name that is already known will fail
  immediately.
* Removal of event handler not supported.
* Removal of surfaces not supported - assume the application
  lives only as long as it's surface.
* Add minimal Event_Active event handler to main.

Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
AFBClient.cpp
AFBClient.h