summaryrefslogtreecommitdiff
path: root/clients/ivi-shell-user-interface.c
Commit message (Collapse)AuthorAgeFilesLines
* ivi-shell-user-interface: ignore all but first seatPekka Paalanen2016-05-121-0/+4
| | | | | | | | | This client should support binding to multiple seats, but as it does not, make a quick and dirty fix to ignore all seats beyond the first one. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi: Switch from MEM_ALLOC to the now equivalent xzallocBryce Harrington2016-03-171-15/+7
| | | | | | | Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
* clients & tests: Unify multiple definitions of x*alloc and related functionsBryce Harrington2016-03-171-12/+1
| | | | | | | | | | | | | Direct fail_on_null calls now produce output like: [weston-info] clients/weston-info.c:714: out of memory xmalloc, et al produce output on failure like: [weston-info] out of memory (-1) Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* clients: Use zallocBryce Harrington2016-03-091-1/+2
| | | | Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
* hmi-controller: allocate background surfaces for multi-screenNobuhiko Tanibata2015-12-141-11/+28
| | | | | | | | | | | | | | A surface ID for layer of background/panel image is set by key: background-id or panel-id at weston.ini. To support multi screens, it also support offset, surface-id-offset, to offset the surface ID to next ID for a layer on next screen. According to the above key, hmi-controller and ivi-shell-user-interface who increments the number of screens per notification of wl_output. crate surface and draw background/panel image on multi surface on screens. Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* ivi-shell-user-interface: fix runtime error caused by missing header inclusionYong-iL Joh2015-11-241-0/+2
| | | | | | | | | | | | | | when weston is running on qemux86 device, there is an error with following. [08:02:07.897] launching '/usr/lib/weston/weston-ivi-shell-user-interface' [08:02:08.201] /usr/lib/weston/weston-ivi-shell-user-interface died on signal 11 this is caused by type mismatch, and it does occur on qemux86-64 Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com> Acked-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* Coding style fixesDawid Gajownik2015-08-071-1/+1
| | | | | | | | | - opening braces are on the same line as the if statement - opening braces are not on the same line as the function name - space between for/while/if and opening parenthesis Signed-off-by: Dawid Gajownik <gajownik@gmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
* test/ivi: include protocol headers for all used protocolsBill Spitzak2015-08-061-0/+1
| | | | | | | | | | This seems like a good idea for consistency that the protocol header is included for any protocols used by the code. This also means the code will compile with headers generated by wayland-scanner -c. Fixed to use angle brackets. Reviewed-by: Daniel Stone <daniels@collabora.com>
* Moved helper macro to a discrete include file.Jon Cruz2015-06-151-1/+1
| | | | | | | | | | | To help reduce code duplication and also 'kitchen-sink' includes the ARRAY_LENGTH macro was moved to a stand-alone file and referenced from the sources consuming it. Other macros will be added in subsequent passes. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* Remove redundant #include path component.Jon Cruz2015-06-151-3/+3
| | | | | | | | | Using the parent '../' path component in #include statements makes the codebase more rigid and is redundant due to proper -I use. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* clients: Update boilerplate from MIT X11 license to MIT Expat licensesBryce Harrington2015-06-151-16/+17
|
* Pass config file from compositor to everythingPekka Paalanen2015-03-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | We have the Weston command line option '--no-config' which is meant to prevent loading weston.ini at all. It works for Weston itself, but it does not work for any clients that also want to read weston.ini. To fix that, introduce a new environment variable WESTON_CONFIG_FILE. Weston will set it to the absolute path of the config file it loads. Clients will load the config file pointed to by WESTON_CONFIG_FILE. If the environment variable is set but empty, no config file will be loaded. If the variable is unset, things fall back to the default "weston.ini". Note, that Weston will only set WESTON_CONFIG_FILE, it never reads it. The ability to specify a custom config file to load will be another patch. All programs that loaded "weston.ini" are modified to honour WESTON_CONFIG_FILE. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk> Reviewed-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* clients: a reference implementation of UI client how to use ivi-hmi-controller.Nobuhiko Tanibata2014-12-041-0/+1310
- introduces ivi-shell-user-interface.c This is launched from hmi-controller by launch_hmi_client_process and invoke a client process. The basic flow is as followed, 1/ process invoked 2/ read configuration from weston.ini. 3/ draw png file to surface according to configuration of weston.ini 4/ all parts of UI are ready. request "UI_ready" to draw UI. 5/ Enter event loop 6/ If a surface receives touch/pointer event, followings are invoked according to type of event and surface 6-1/ If a surface to launch ivi_application receive touch up, it execs ivi-application configured in weston.ini. 6-2/ If a surface to switch layout mode receive touch up, it sends a request, ivi_hmi_controller_switch_mode, to hmi-controller. 6-3/ If a surface to show workspace having launchers, it sends a request, ivi_hmi_controller_home, to hmi-controller. 6-4/ If touch down events happens in workspace, ivi_hmi_controller_workspace_control is sent to slide workspace. When control finished, event: ivi_hmi_controller_workspace_end_control is received. Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>