summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-09-14Impl: use handler_fun instead of its full typeMarcus Fritzsch1-2/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: implement event handler dispatchMarcus Fritzsch2-49/+122
* 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-14Impl: made wsj1_itf constMarcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Impl: made 'returned' boolean atomicMarcus Fritzsch1-3/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: Pimpl'ed to hide impl detailsMarcus Fritzsch2-20/+83
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 Fritzsch2-17/+20
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: remove call() methodMarcus Fritzsch2-83/+85
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: TRACE() onReply too!Marcus Fritzsch1-3/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: trace dispatch_internal(), header hygieneMarcus Fritzsch2-19/+27
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: make all call through call()Marcus Fritzsch2-94/+108
* 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-14AFBClient:: clang-formatMarcus Fritzsch1-116/+105
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14AFBClient: fix NDEBUG usageMarcus Fritzsch1-13/+12
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Make all non-public things private (move to impl)Marcus Fritzsch2-106/+110
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Add set_event_handler, added int returns for all API methods.Marcus Fritzsch2-20/+75
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Application code clean-upMarcus Fritzsch2-13/+4
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Removing some test callsMarcus Fritzsch1-6/+14
There were some test calls left that don't make any sense to be kept in the main(). Removed the extern C definitions of the functions used by the application from the AFB. Added some more debugging information original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14WIP: add enddraw() and deacrivate_surface() implementations.Marcus Fritzsch1-3/+11
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14WIP: make requestSurface/activateSurace() syncronousMarcus Fritzsch2-58/+62
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Reading and exporting the surfaceID from WMMarcus Fritzsch1-3/+17
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Remove the AFB definitionMarcus Fritzsch2-16/+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 Fritzsch2-0/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Trying to fix the link with wsj1Marcus Fritzsch1-3/+8
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Adding some extra application parametersMarcus Fritzsch2-29/+66
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Moved the AFBClient to singletonMarcus Fritzsch2-1/+21
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Fix compilation for targetMarcus Fritzsch2-20/+31
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-14Fix compilation on hostMarcus Fritzsch2-3/+32
original author is Aurelian. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12add AFBClientMarcus Fritzsch2-0/+167
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12cmake: add file license headerMarcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12wm-request: add file license headerMarcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12cmake: add file license headerMarcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12policy: add file license headerMarcus Fritzsch1-3/+15
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12redraw_fixer: add file license headerMarcus Fritzsch1-3/+15
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12redraw_fixer: fix a couple of unneeded extra redundant stuffMarcus Fritzsch1-40/+28
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12add redraw_fixer, separate controller toolMarcus Fritzsch2-1/+157
* Use the existing wayland.hpp/cpp implementation * Listen for visibility and destination_rectangle events * Apply changing values to opacity to "fix" redraw Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12util: add ability to disable afb logging macro usageMarcus Fritzsch1-0/+15
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: controller hooks implMarcus Fritzsch1-0/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12policy: debuglog everytime-positive resultMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12Add visibility dst-rect controller hooksMarcus Fritzsch2-1/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: be more thorough on (de)activate()Marcus Fritzsch1-2/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: correctly deactivate sub surfacesMarcus Fritzsch1-3/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: remove unused field layoutsMarcus Fritzsch2-6/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: fix missing layout_commit() on single-surface deactivateMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12policy: add a simple policy stub, broke some layouting thoMarcus Fritzsch5-77/+117
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12app: emit_syncdraw() only after layout commit to compositorMarcus Fritzsch1-8/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12layers/app: properly remove surfs, deactivate main_surfaceMarcus Fritzsch3-3/+21
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: add layout_commit()Marcus Fritzsch2-13/+14
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: single-method layout setupMarcus Fritzsch2-74/+35
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: make a couple of methods private to signal internal useMarcus Fritzsch3-21/+35
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-12App: add enqueue_flushdraw() and check_flushdraw()Marcus Fritzsch2-13/+28
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>