summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-08-08ids.json: add comment about tests expecting a failureMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layout: check id_min against lower_bound() resultMarcus Fritzsch1-1/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: resturn Err() on failed IDs testMarcus Fritzsch1-4/+3
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: try to parse ids.json, run embedded tests (debug output only)Marcus Fritzsch1-14/+48
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08layout: add surface id to layer mappingMarcus Fritzsch2-2/+78
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08result: add some more functionalityMarcus Fritzsch1-0/+26
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util: move DB() debug macro from appMarcus Fritzsch2-11/+12
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08json_helper: move get here (from app)Marcus Fritzsch2-10/+12
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08add ids.json and layout.jsonMarcus Fritzsch2-0/+84
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: propagate errors from layout parsing, more thorough checkingMarcus Fritzsch1-15/+30
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08result: implicit unwrap on conversion to result TMarcus Fritzsch1-1/+10
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: add very c++-y layout parsingMarcus Fritzsch4-4/+127
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08wayland: add display::add_global_handler which forwards to registryMarcus Fritzsch2-9/+14
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08cmake: fix source list layoutMarcus Fritzsch1-1/+9
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08cmake: require afb-daemon w/o version specifierMarcus Fritzsch1-1/+1
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08cmake: add opton to link against LLVM's libc++Marcus Fritzsch2-0/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08json_helper: use json-c object creationMarcus Fritzsch1-21/+46
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08app: reset g_app on ~App()Marcus Fritzsch2-0/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-format, mostly indenting.Marcus Fritzsch6-203/+204
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08clang-tidy the place upMarcus Fritzsch2-14/+13
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08glue: renamed output files to better represent their actual purposeMarcus Fritzsch4-8/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: move most of main to app, separate ownershipMarcus Fritzsch4-109/+136
* Move everything apart from the display connection itself to App. * Everything depending on the display however is owned by App. * Dispatch events for the application in App::dispatch_events() That is, display_dispatch and local stuff e.g. execute_pending(). Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08Generating binding API glue code using generate-binding.pyMarcus Fritzsch6-136/+204
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main/app: started to move things to appMarcus Fritzsch4-1/+90
Started implementing App, as the actual implementation, that is, to pull out all the stuff that is actually the application and only have glue code reside in main. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: appid and surfaceid in register_surface are unsignedMarcus Fritzsch1-4/+4
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: rename g_wayland to g_afb_instanceMarcus Fritzsch1-36/+38
It holds the data necessary for the AFB to work, hence call it g_afb_instance to make this clear. 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 Fritzsch5-109/+64
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-08main: imeplemented dummy register_surface with replyMarcus Fritzsch1-1/+38
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: remove CHECK_WAYLAND, inline logic into WRAPMarcus Fritzsch2-10/+6
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08util: do not define needed afb versionMarcus Fritzsch1-1/+0
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
2017-08-08main: use our own log functionsMarcus Fritzsch1-9/+8
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
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 Fritzsch3-87/+192
* 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-08Add nlohnmann/json header only c++11+ json library v. 2.1.1Marcus Fritzsch1-0/+13003
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>