summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-08-08cmake: define afb-daemon configuration items on target basisMarcus Fritzsch1-0/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: wrap afb verb handlers, "namepace" debug verbsMarcus Fritzsch1-12/+16
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util: logging to the afb daemonMarcus Fritzsch3-66/+15
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08Move all nlohmann::json to json_helper.cppMarcus Fritzsch5-61/+114
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: further simplificationMarcus Fritzsch1-10/+21
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: reorganize and simplifyMarcus Fritzsch1-67/+82
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add wl::display::get_error()Marcus Fritzsch2-0/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08Check for g_wayland in every API call.Marcus Fritzsch1-5/+14
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: add layers and surfaces API callsMarcus Fritzsch1-1/+28
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08Implement window manager as an AGL App-FW bindingMarcus Fritzsch2-87/+191
* Compile to shared object module, to be loaded by afb-daemon. * Take most of main, rewrite to adhere to the AFB API. * Implement dummy API call winman/status. * Use export.map to specify symbol visibility. * Poller and unique_fd are currently useless/unused. * Logging is still only to stdout/stderr. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util: noexcept logging and also noreturn for fatal()Marcus Fritzsch3-10/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: read only one signal and only return -1 if it succeededMarcus Fritzsch1-2/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy the place upMarcus Fritzsch2-5/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08all: clang-formatMarcus Fritzsch4-37/+36
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08moved Poller and unique_fd from main to util, fixed c++ issues in utilMarcus Fritzsch3-72/+77
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util.h and its impl are now c++Marcus Fritzsch5-5/+5
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: read only once from stdin for status logMarcus Fritzsch1-3/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08cmake: enable _GLIBCXX_DEBUG when building DebugMarcus Fritzsch1-0/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: handling signals, added simple unique_fd RAII helperMarcus Fritzsch1-2/+44
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: read() returns ssize_t not intMarcus Fritzsch1-1/+2
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: cleanup Poller implementationMarcus Fritzsch1-7/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: better check_events implementationMarcus Fritzsch3-53/+74
* 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-08main: add wl_output proxy-to-id mapping in wl_output global handlerMarcus Fritzsch1-4/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: rename connection, streamline init_layout and error handlingMarcus Fritzsch1-14/+16
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 Fritzsch2-74/+77
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: 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-08cmake: do not generate the ivi_application protocolMarcus Fritzsch1-2/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: unique_ptr'd wayland_proxyMarcus Fritzsch2-110/+117
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: removed unnecessary destructorsMarcus Fritzsch2-11/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: simpler layout for controller::proxy_to_id mapsMarcus Fritzsch2-4/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: moved screen inline methods to .cppMarcus Fritzsch2-13/+18
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: do not include cstdlib, it's unusedMarcus Fritzsch1-2/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: moved inline methods to .cppMarcus Fritzsch2-134/+166
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-08cmake: merged target properties on winman, added IPO/LTOMarcus Fritzsch1-3/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy the place upMarcus Fritzsch3-80/+91
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 Fritzsch2-2/+3
Also don't set layer visibility when adding surfaces. 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 Fritzsch2-2/+44
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 Fritzsch2-9/+9
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: pass struct conn by-reference to init_layout()Marcus Fritzsch1-6/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: strip std::quniue_ptr from wl::display as it is superfluousMarcus Fritzsch1-17/+17
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>