summary |
shortlog | log |
commit |
commitdiff |
review |
tree
first ⋅ prev ⋅ next
Marcus Fritzsch [Tue, 4 Jul 2017 14:29:32 +0000 (16:29 +0200)]
util: noexcept logging and also noreturn for fatal()
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Tue, 4 Jul 2017 14:29:05 +0000 (16:29 +0200)]
main: read only one signal and only return -1 if it succeeded
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 3 Jul 2017 09:05:38 +0000 (11:05 +0200)]
clang-tidy the place up
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 3 Jul 2017 09:04:56 +0000 (11:04 +0200)]
all: clang-format
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 3 Jul 2017 09:04:24 +0000 (11:04 +0200)]
moved Poller and unique_fd from main to util, fixed c++ issues in util
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 3 Jul 2017 09:01:28 +0000 (11:01 +0200)]
util.h and its impl are now c++
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 30 Jun 2017 13:58:45 +0000 (15:58 +0200)]
main: read only once from stdin for status log
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 30 Jun 2017 11:55:12 +0000 (13:55 +0200)]
cmake: enable _GLIBCXX_DEBUG when building Debug
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 30 Jun 2017 11:54:23 +0000 (13:54 +0200)]
main: handling signals, added simple unique_fd RAII helper
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 30 Jun 2017 11:53:51 +0000 (13:53 +0200)]
main: read() returns ssize_t not int
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 30 Jun 2017 11:53:23 +0000 (13:53 +0200)]
main: cleanup Poller implementation
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 30 Jun 2017 11:06:25 +0000 (13:06 +0200)]
main: better check_events implementation
* 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>
Marcus Fritzsch [Thu, 29 Jun 2017 14:07:05 +0000 (16:07 +0200)]
main: add wl_output proxy-to-id mapping in wl_output global handler
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 29 Jun 2017 12:29:13 +0000 (14:29 +0200)]
main: rename connection, streamline init_layout and error handling
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 29 Jun 2017 12:28:41 +0000 (14:28 +0200)]
wayland: do not special-case ~display for DEBUG_OUTPUT
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 29 Jun 2017 12:27:57 +0000 (14:27 +0200)]
wayland: genivi object events are called with their respective object
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Wed, 28 Jun 2017 14:37:34 +0000 (16:37 +0200)]
wayland: be explicit about our struct layer/surface designation
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Wed, 28 Jun 2017 14:36:54 +0000 (16:36 +0200)]
wayland: wayland_proxy ctor improvement
* 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>
Marcus Fritzsch [Wed, 28 Jun 2017 14:33:53 +0000 (16:33 +0200)]
wayland: header order fixed, comment on controller member order
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Wed, 28 Jun 2017 14:33:16 +0000 (16:33 +0200)]
wayland: delete copy ctors and operators
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Wed, 28 Jun 2017 14:32:39 +0000 (16:32 +0200)]
cmake: do not generate the ivi_application protocol
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Tue, 27 Jun 2017 13:50:32 +0000 (15:50 +0200)]
wayland: unique_ptr'd wayland_proxy
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Tue, 27 Jun 2017 07:23:43 +0000 (09:23 +0200)]
wayland: removed unnecessary destructors
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Tue, 27 Jun 2017 06:55:18 +0000 (08:55 +0200)]
wayland: simpler layout for controller::proxy_to_id maps
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Tue, 27 Jun 2017 06:24:10 +0000 (08:24 +0200)]
wayland: moved screen inline methods to .cpp
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Tue, 27 Jun 2017 06:21:24 +0000 (08:21 +0200)]
main: do not include cstdlib, it's unused
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Tue, 27 Jun 2017 06:21:05 +0000 (08:21 +0200)]
wayland: moved inline methods to .cpp
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Tue, 27 Jun 2017 05:55:08 +0000 (07:55 +0200)]
wayland: less cast-y, minor style fixes
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Tue, 27 Jun 2017 05:54:48 +0000 (07:54 +0200)]
cmake: merged target properties on winman, added IPO/LTO
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 19:54:01 +0000 (21:54 +0200)]
clang-tidy the place up
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 14:41:15 +0000 (16:41 +0200)]
wayland: controller_surface() sets surface visibility, less lookups
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 14:40:51 +0000 (16:40 +0200)]
wayland: less lookup-y controller_layer()
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 14:39:05 +0000 (16:39 +0200)]
wayland: remove layer on controller::layer_destroyed
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 14:38:40 +0000 (16:38 +0200)]
main: set layer visibility in init_layout()
Also don't set layer visibility when adding surfaces.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 14:38:22 +0000 (16:38 +0200)]
wayland: minor clang-format fixes
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 14:37:52 +0000 (16:37 +0200)]
wayland: introduce reverse mappings of proxy-ptr to id
Needed to lookup the objects when we receive calls like e.g.
surface::layer().
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 14:34:55 +0000 (16:34 +0200)]
wayland: rename controlled_entity to controller_child
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 11:26:50 +0000 (13:26 +0200)]
main: pass struct conn by-reference to init_layout()
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 11:22:00 +0000 (13:22 +0200)]
main: strip std::quniue_ptr from wl::display as it is superfluous
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 11:20:37 +0000 (13:20 +0200)]
wayland: cast wl_fixed_to_double() return to float for our interface
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 11:20:05 +0000 (13:20 +0200)]
wayland: display unique_ptr holds a void(*)(...) deleter
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 11:19:21 +0000 (13:19 +0200)]
wayland: clang-format
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 11:17:33 +0000 (13:17 +0200)]
util: make log_() static
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 10:18:31 +0000 (12:18 +0200)]
wayland: one less level of unique_ptr
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>
Marcus Fritzsch [Mon, 26 Jun 2017 10:16:00 +0000 (12:16 +0200)]
main: use auto variables where appropriate and sensible
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 10:15:40 +0000 (12:15 +0200)]
main: header hygiene
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 26 Jun 2017 10:15:27 +0000 (12:15 +0200)]
cmake: modernized to the best of my knowledge
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 13:51:12 +0000 (15:51 +0200)]
wayland: set surface layout in controller::surface
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 13:37:34 +0000 (15:37 +0200)]
use unordered_map for id->obj maps
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 13:11:57 +0000 (15:11 +0200)]
main: c++-ifiy struct conn c init
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 13:09:03 +0000 (15:09 +0200)]
main: do not capture the whole environment in lambdas
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 13:08:02 +0000 (15:08 +0200)]
main: added some 'demarcation' comments
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 13:05:14 +0000 (15:05 +0200)]
main/init_layout: use screen::set_render_order instead of add_layer calls
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 13:04:37 +0000 (15:04 +0200)]
wayland: C++ified set_render_order requests for layer and screen
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:48:06 +0000 (14:48 +0200)]
update session
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:47:39 +0000 (14:47 +0200)]
wayland: initialize layer members
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:47:23 +0000 (14:47 +0200)]
wayland: print debug message when setting surface onto layer
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:47:00 +0000 (14:47 +0200)]
wayland: remove surface immediately on surface_destroyed event
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:28:10 +0000 (14:28 +0200)]
main: flush after execute_pending
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:27:55 +0000 (14:27 +0200)]
main: Reset layout on stratup; bottom and top layer layout
* 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>
Marcus Fritzsch [Fri, 23 Jun 2017 12:26:16 +0000 (14:26 +0200)]
wayland: put surface 0x16180 on layer 100, all others on layer 1000
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:25:50 +0000 (14:25 +0200)]
wayland: minimal code style change
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:10:21 +0000 (14:10 +0200)]
main: also show layer info on line break
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:09:52 +0000 (14:09 +0200)]
wayland: simplify surface property setting
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 12:09:32 +0000 (14:09 +0200)]
wayland: store layer properties
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 10:41:25 +0000 (12:41 +0200)]
wayland: set surfaces fullscreen when configured.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 10:40:55 +0000 (12:40 +0200)]
wayland: initalize all controll members
* Also; added output_size - for now.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 10:29:27 +0000 (12:29 +0200)]
main: init dummy layout of layer 100 on the first screen
* 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>
Marcus Fritzsch [Fri, 23 Jun 2017 10:24:41 +0000 (12:24 +0200)]
main: check that outputs are available before running main loop
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 10:24:06 +0000 (12:24 +0200)]
wayland: add missing add_layer and clear requests to genivi::screen
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 10:23:36 +0000 (12:23 +0200)]
wayland: add missing controller requests
* Added layer_create and surface_create to genivi::controller.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 23 Jun 2017 07:25:26 +0000 (09:25 +0200)]
wayland: task names, delete surfaces using pending_tasks
* 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>
Marcus Fritzsch [Thu, 22 Jun 2017 14:23:35 +0000 (16:23 +0200)]
main: execute controllers pending tasks, clang-format
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 22 Jun 2017 14:23:17 +0000 (16:23 +0200)]
wayland: added a pending tasks list to controller
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>
Marcus Fritzsch [Thu, 22 Jun 2017 14:21:26 +0000 (16:21 +0200)]
wayland: storing output mode and surface properties
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>
Marcus Fritzsch [Thu, 22 Jun 2017 14:22:21 +0000 (16:22 +0200)]
wayland: added genivi::rect and genivi::size and props to genivi::surface
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 22 Jun 2017 12:20:16 +0000 (14:20 +0200)]
wayland: remove surfaces that got destroyed
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 22 Jun 2017 12:19:36 +0000 (14:19 +0200)]
main/wayland: added a simple main loop
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 19 Jun 2017 13:05:09 +0000 (15:05 +0200)]
updated session
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 19 Jun 2017 11:52:10 +0000 (13:52 +0200)]
wayland: minor fix with this-> and formatting
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 19 Jun 2017 11:51:44 +0000 (13:51 +0200)]
util: add printf format check attributes
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 19 Jun 2017 11:51:12 +0000 (13:51 +0200)]
cmake: introduce ENABLE_DEBUG_OUTPUT cmake cache variable
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 19 Jun 2017 08:29:38 +0000 (10:29 +0200)]
renamed controller event methods, all have now a controller_ prefix
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Mon, 19 Jun 2017 08:16:20 +0000 (10:16 +0200)]
do not initialize registry when display is unavailable
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 9 Jun 2017 15:18:28 +0000 (17:18 +0200)]
removed all notifier remnants
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Fri, 9 Jun 2017 15:13:43 +0000 (17:13 +0200)]
wayland: refactored genivi object events
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>
Marcus Fritzsch [Fri, 9 Jun 2017 13:55:20 +0000 (15:55 +0200)]
wayland: added notification prototype, be more explicit about struct types
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>
Marcus Fritzsch [Fri, 9 Jun 2017 13:52:36 +0000 (15:52 +0200)]
cmake: visibility is hidden, do not warn about comments
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 8 Jun 2017 14:20:39 +0000 (16:20 +0200)]
fixed display dtor message, added layer request defs
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 8 Jun 2017 13:40:11 +0000 (15:40 +0200)]
moved callback thunks to impl, makes classes readable
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 8 Jun 2017 13:00:55 +0000 (15:00 +0200)]
hooked up genivi::surface and layer
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Thu, 8 Jun 2017 11:33:47 +0000 (13:33 +0200)]
cpp, simple wrappers for most of what we need, ivi_* still incomplete
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Wed, 7 Jun 2017 16:02:36 +0000 (18:02 +0200)]
cpp, more listeners
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Wed, 7 Jun 2017 12:29:15 +0000 (14:29 +0200)]
add gvim session
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Marcus Fritzsch [Wed, 7 Jun 2017 12:28:57 +0000 (14:28 +0200)]
initial commit
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>