summaryrefslogtreecommitdiffstats
path: root/src/wayland.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-08-08wayland: add wl::display::get_error()Marcus Fritzsch1-0/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util: noexcept logging and also noreturn for fatal()Marcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy the place upMarcus Fritzsch1-4/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08all: clang-formatMarcus Fritzsch1-5/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: better check_events implementationMarcus Fritzsch1-0/+23
* Introduced helper struct Poller * Implements check_events() and calls custom handlers on POLLIN. * Moved status dump to genivi::controller. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: do not special-case ~display for DEBUG_OUTPUTMarcus Fritzsch1-11/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: genivi object events are called with their respective objectMarcus Fritzsch1-55/+58
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: be explicit about our struct layer/surface designationMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: unique_ptr'd wayland_proxyMarcus Fritzsch1-91/+101
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: removed unnecessary destructorsMarcus Fritzsch1-8/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: simpler layout for controller::proxy_to_id mapsMarcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: moved screen inline methods to .cppMarcus Fritzsch1-0/+15
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: moved inline methods to .cppMarcus Fritzsch1-0/+134
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: less cast-y, minor style fixesMarcus Fritzsch1-41/+39
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy the place upMarcus Fritzsch1-63/+68
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: controller_surface() sets surface visibility, less lookupsMarcus Fritzsch1-3/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: less lookup-y controller_layer()Marcus Fritzsch1-1/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: remove layer on controller::layer_destroyedMarcus Fritzsch1-0/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: set layer visibility in init_layout()Marcus Fritzsch1-2/+1
Also don't set layer visibility when adding surfaces. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: introduce reverse mappings of proxy-ptr to idMarcus Fritzsch1-2/+11
Needed to lookup the objects when we receive calls like e.g. surface::layer(). Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: rename controlled_entity to controller_childMarcus Fritzsch1-3/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: cast wl_fixed_to_double() return to float for our interfaceMarcus Fritzsch1-2/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: display unique_ptr holds a void(*)(...) deleterMarcus Fritzsch1-3/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: clang-formatMarcus Fritzsch1-10/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: one less level of unique_ptrMarcus Fritzsch1-1/+1
Display now holds struct registry by value, as holding it through a unique_ptr was rather unnecessary. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: set surface layout in controller::surfaceMarcus Fritzsch1-15/+11
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08use unordered_map for id->obj mapsMarcus Fritzsch1-3/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: initialize layer membersMarcus Fritzsch1-2/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: print debug message when setting surface onto layerMarcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: remove surface immediately on surface_destroyed eventMarcus Fritzsch1-0/+1
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: simplify surface property settingMarcus Fritzsch1-12/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: store layer propertiesMarcus Fritzsch1-9/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: set surfaces fullscreen when configured.Marcus Fritzsch1-6/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: initalize all controll membersMarcus Fritzsch1-1/+6
* Also; added output_size - for now. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add missing controller requestsMarcus Fritzsch1-1/+13
* 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 Fritzsch1-3/+3
* 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-08wayland: storing output mode and surface propertiesMarcus Fritzsch1-2/+35
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: 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 Fritzsch1-0/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: minor fix with this-> and formattingMarcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08renamed controller event methods, all have now a controller_ prefixMarcus Fritzsch1-10/+11
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-08wayland: refactored genivi object eventsMarcus Fritzsch1-59/+81
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 Fritzsch1-54/+58
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 Fritzsch1-9/+14
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08moved callback thunks to impl, makes classes readableMarcus Fritzsch1-209/+240
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08hooked up genivi::surface and layerMarcus Fritzsch1-2/+213
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08cpp, simple wrappers for most of what we need, ivi_* still incompleteMarcus Fritzsch1-0/+242
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>