summaryrefslogtreecommitdiffstats
path: root/src/wayland.hpp
AgeCommit message (Collapse)AuthorFilesLines
2017-09-12wayland: extend wl::display for finer grained dispatch controlMarcus Fritzsch1-0/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04wayland: honor output transformationsMarcus Fritzsch1-0/+1
At least rotations by 90 and 270 degrees. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-09-04clarify some thingsMarcus Fritzsch1-0/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang formattingMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app/wayland: move late-tasks to AppMarcus Fritzsch1-9/+0
* Move late-tasks to App. * Add add_task() to controller_hooks. * Do not roundtrip at the end of App::execute_pending(), flush() is enough. * Tasks are now void() functions, need to capture what is needed. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add {surface,layer}_exists(uint32_t) methodsMarcus Fritzsch1-0/+9
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08add license text to implementation filesMarcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add genivi::full_rect and operator== for genivi::rectMarcus Fritzsch1-0/+6
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-08wayland: clang-formatMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: wire up controller_hooksMarcus Fritzsch1-1/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add display::add_global_handler which forwards to registryMarcus Fritzsch1-0/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-format, mostly indenting.Marcus Fritzsch1-7/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: sprops and lprops should be before the *_map_typesMarcus Fritzsch1-3/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08Track surface/layer properties with one structMarcus Fritzsch1-16/+15
As both share the exact same properties this makes sense, we now can write code once and work on both layer and surface properties. This however is only relevant in the wayland "level" of things, as in WM semantics layers are always fullscreen. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08Move all nlohmann::json to json_helper.cppMarcus Fritzsch1-6/+14
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add wl::display::get_error()Marcus Fritzsch1-0/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08all: clang-formatMarcus Fritzsch1-7/+7
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util.h and its impl are now c++Marcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: better check_events implementationMarcus Fritzsch1-0/+2
* 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: genivi object events are called with their respective objectMarcus Fritzsch1-19/+19
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: wayland_proxy ctor improvementMarcus Fritzsch1-4/+3
* Take the std::function by rval reference. * Do not create a lambda for the wl_proxy_destroy deleter. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: header order fixed, comment on controller member orderMarcus Fritzsch1-1/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: delete copy ctors and operatorsMarcus Fritzsch1-0/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: unique_ptr'd wayland_proxyMarcus Fritzsch1-19/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: removed unnecessary destructorsMarcus Fritzsch1-3/+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-13/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: moved inline methods to .cppMarcus Fritzsch1-134/+32
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy the place upMarcus Fritzsch1-6/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: minor clang-format fixesMarcus Fritzsch1-2/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: introduce reverse mappings of proxy-ptr to idMarcus Fritzsch1-0/+33
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-6/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: display unique_ptr holds a void(*)(...) deleterMarcus Fritzsch1-2/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: clang-formatMarcus Fritzsch1-11/+11
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: one less level of unique_ptrMarcus Fritzsch1-22/+20
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-08use unordered_map for id->obj mapsMarcus Fritzsch1-5/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: C++ified set_render_order requests for layer and screenMarcus Fritzsch1-2/+15
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-08wayland: store layer propertiesMarcus Fritzsch1-0/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: initalize all controll membersMarcus Fritzsch1-0/+2
* Also; added output_size - for now. 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 Fritzsch1-0/+6
* 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-4/+9
* 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: 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 Fritzsch1-0/+4
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-08main/wayland: added a simple main loopMarcus Fritzsch1-0/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: minor fix with this-> and formattingMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08renamed controller event methods, all have now a controller_ prefixMarcus Fritzsch1-4/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>