aboutsummaryrefslogtreecommitdiffstats
path: root/AFBClient.h
AgeCommit message (Collapse)AuthorFilesLines
2017-09-14Move AFBClient to client-lib/Marcus Fritzsch1-45/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: fix some clang-tidy issuesMarcus Fritzsch1-9/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: implement event handler dispatchMarcus Fritzsch1-2/+5
* 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>
2017-09-14AFBClient: Pimpl'ed to hide impl detailsMarcus Fritzsch1-5/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14remove json_object fwd declMarcus Fritzsch1-1/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Guard dispatch using a mutex, remove dipatch() timeout parameterMarcus Fritzsch1-7/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: remove call() methodMarcus Fritzsch1-3/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: trace dispatch_internal(), header hygieneMarcus Fritzsch1-10/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: make all call through call()Marcus Fritzsch1-2/+5
* Make all calls through call(). * dispatch() aggressively to ensure we actually dispatch our call reply too. * Extend scope tracing, guarded by NDEBUG. * Remove onReply, always use the locally supplied callable. * Simplify method implementations making API calls. * Propagate API call result through call() method return value. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Make all non-public things private (move to impl)Marcus Fritzsch1-16/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Add set_event_handler, added int returns for all API methods.Marcus Fritzsch1-5/+20
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Application code clean-upMarcus Fritzsch1-1/+0
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14WIP: make requestSurface/activateSurace() syncronousMarcus Fritzsch1-3/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Remove the AFB definitionMarcus Fritzsch1-2/+0
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14WIP: dispatch sd_events, but break qt event handlingMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Adding some extra application parametersMarcus Fritzsch1-2/+1
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Moved the AFBClient to singletonMarcus Fritzsch1-1/+11
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Fix compilation for targetMarcus Fritzsch1-6/+12
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Fix compilation on hostMarcus Fritzsch1-0/+4
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12add AFBClientMarcus Fritzsch1-0/+34
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>