summaryrefslogtreecommitdiffstats
path: root/src/app.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-08-08app: some comments and erorrs regarding IDs configurationMarcus Fritzsch1-0/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: when loading config, handle returned errorsMarcus Fritzsch1-8/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: simplify config loading code, handle errors tooMarcus Fritzsch1-6/+20
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08minor clang-formatMarcus Fritzsch1-7/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: handle failure to load layout.json gracefullyMarcus Fritzsch1-1/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: implement configured surface areas from ids.jsonMarcus Fritzsch1-13/+19
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: make genivi::rect::width and height int32Marcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: surfaces on layer != 1000 leave a 100pixel top and bottom marginMarcus Fritzsch1-3/+14
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: add debug_terminate() event, quick hack to terminateMarcus Fritzsch1-0/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: clang-formatMarcus Fritzsch1-4/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: provide a layers-only vectorMarcus Fritzsch1-5/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: logdebug() layer setupMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: scene setup according to ids.jsonMarcus Fritzsch1-35/+38
* Setup layers as specified in ids.json. * Map surfaces to their layers. * Complain about unknown surfaces (i.e. those w/o a mapping). Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: preallocate layouts storageMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/wayland: move surface setup as is to app controller hookMarcus Fritzsch1-0/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: wire up controller_hooksMarcus Fritzsch1-2/+39
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/layers: move embedded test run to layersMarcus Fritzsch1-22/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy once moreMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layers: introduce layers.hpp and .cpp for layer related codeMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: resturn Err() on failed IDs testMarcus Fritzsch1-4/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: try to parse ids.json, run embedded tests (debug output only)Marcus Fritzsch1-14/+48
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util: move DB() debug macro from appMarcus Fritzsch1-11/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08json_helper: move get here (from app)Marcus Fritzsch1-10/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: propagate errors from layout parsing, more thorough checkingMarcus Fritzsch1-15/+30
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: add very c++-y layout parsingMarcus Fritzsch1-4/+76
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add display::add_global_handler which forwards to registryMarcus Fritzsch1-9/+9
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: reset g_app on ~App()Marcus Fritzsch1-0/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-format, mostly indenting.Marcus Fritzsch1-149/+147
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy the place upMarcus Fritzsch1-6/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: move most of main to app, separate ownershipMarcus Fritzsch1-3/+117
* Move everything apart from the display connection itself to App. * Everything depending on the display however is owned by App. * Dispatch events for the application in App::dispatch_events() That is, display_dispatch and local stuff e.g. execute_pending(). Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08Generating binding API glue code using generate-binding.pyMarcus Fritzsch1-9/+29
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main/app: started to move things to appMarcus Fritzsch1-0/+30
Started implementing App, as the actual implementation, that is, to pull out all the stuff that is actually the application and only have glue code reside in main. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>