aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-08-08main: flush after execute_pendingMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: Reset layout on stratup; bottom and top layer layoutMarcus Fritzsch1-12/+19
* When started, layout is cleared, that is layers will be removed and screen render order reset * Layers 100 and 1000 are created, layer 1000 s the top layer. * Add layers to screen * C++-ification of some cumbersome direct-pointer accesses. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: put surface 0x16180 on layer 100, all others on layer 1000Marcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: minimal code style changeMarcus Fritzsch1-1/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: also show layer info on line breakMarcus Fritzsch1-0/+11
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: simplify surface property settingMarcus Fritzsch1-12/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: store layer propertiesMarcus Fritzsch2-9/+21
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: set surfaces fullscreen when configured.Marcus Fritzsch2-6/+9
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: initalize all controll membersMarcus Fritzsch2-1/+8
* Also; added output_size - for now. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: init dummy layout of layer 100 on the first screenMarcus Fritzsch1-0/+25
* If the layer is not existent, create it. * Set the layer to the output dimensions. * Set layer visibility to 1. * Add the layer to the first screen. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: check that outputs are available before running main loopMarcus Fritzsch1-0/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add missing add_layer and clear requests to genivi::screenMarcus Fritzsch1-0/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add missing controller requestsMarcus Fritzsch2-1/+19
* Added layer_create and surface_create to genivi::controller. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: task names, delete surfaces using pending_tasksMarcus Fritzsch2-7/+12
* Use the pending task list to delete surfaces * Added task names for debug output, simple pointers to const char for dirty and cheap storage. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: execute controllers pending tasks, clang-formatMarcus Fritzsch1-11/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: added a pending tasks list to controllerMarcus Fritzsch1-0/+15
With this item it is possible to append tasks to the controller, which will be executed after the current events have been dispatched. Note, that tasks need to check their needed resources are still alive! Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: storing output mode and surface propertiesMarcus Fritzsch2-2/+39
The events for this are received by the controller, the data however is stored in the surface proxe wrappers. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: added genivi::rect and genivi::size and props to genivi::surfaceMarcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: remove surfaces that got destroyedMarcus Fritzsch1-0/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main/wayland: added a simple main loopMarcus Fritzsch3-5/+52
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: minor fix with this-> and formattingMarcus Fritzsch2-3/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util: add printf format check attributesMarcus Fritzsch1-5/+12
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08renamed controller event methods, all have now a controller_ prefixMarcus Fritzsch2-14/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08do not initialize registry when display is unavailableMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08removed all notifier remnantsMarcus Fritzsch1-40/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: refactored genivi object eventsMarcus Fritzsch2-97/+128
Events are now delivered to surface_* and layer_* methods of the controller. The genivi object wrappers still are needed to hold wl_proxy objects, their id and a reference/pointer to the controller. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: added notification prototype, be more explicit about struct typesMarcus Fritzsch2-89/+212
Notification support can be implemented on genivi objects using the genivi::notify::notifier, it is supposed to be inherited from by the notification-needing types, e.g. genivi::surface. Currently no implementation for notifier is present (only an empty shell) also it is not yet clear, if the notifications will be sent from the genivi objects method's or e.g. their thunks (which would simplify the methods considerably). Added request wrappers for genivi::surface and genivi::layer, just inline them into the class and be done with it. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08fixed display dtor message, added layer request defsMarcus Fritzsch2-11/+30
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08moved callback thunks to impl, makes classes readableMarcus Fritzsch3-369/+285
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08hooked up genivi::surface and layerMarcus Fritzsch3-21/+332
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08cpp, simple wrappers for most of what we need, ivi_* still incompleteMarcus Fritzsch6-135/+489
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08cpp, more listenersMarcus Fritzsch4-98/+181
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08initial commitMarcus Fritzsch4-0/+174
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>