summaryrefslogtreecommitdiff
path: root/weston-ivi-shell
Commit message (Collapse)AuthorAgeFilesLines
* ivi-controller: add ADIT copyrightEmre Ucan2016-06-281-0/+1
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: rename ivi-controller-impl.c as ivi-controller.cEmre Ucan2016-06-282-1/+1
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: delete ivi-extension and its header filesEmre Ucan2016-06-285-2044/+0
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* cmake: don't compile ivi-extension.cEmre Ucan2016-06-281-1/+1
| | | | | | it is not used in 1.9.91 version Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: modify to use v1.11 ivi_layout_interfaceEmre Ucan2016-06-281-112/+156
| | | | | | | | | 1. Use ivi_layout_interface directly without ivi-extension APIs 2. Use weston_output for IVI Screen APIs. 3. Remove content_observer because IVI Layout API is removed 4. Use new listener APIs instead of notification APIs Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: copy ivishell struct from ivi-extensionEmre Ucan2016-06-281-0/+11
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: copy controller_module init to ivi-controllerEmre Ucan2016-06-281-0/+80
| | | | | | | it is copied from ivi-extension.c, because ivi-extension.c will be removed. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: don't use local copy of ivi-layout-export.hEmre Ucan2016-06-281-3/+1
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* cmake: bump required wayland version to 1.11Emre Ucan2016-06-281-2/+2
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: do refactor send_layer_add_eventWataru Natsume2016-06-211-12/+11
| | | | | | | Check logic should be improved because iviscrn is never null. Besides, do not iterate over empty list like send_surface_add_event. Signed-off-by: Wataru Natsume <wataru_natsume@xddp.denso.co.jp>
* ivi-controller: do refactor send_surface_add_eventWataru Natsume2016-06-211-12/+7
| | | | | | Check logic should be improved because ivilayer is never null. Signed-off-by: Wataru Natsume <wataru_natsume@xddp.denso.co.jp>
* ivi-controller: do not iterate over empty list in send_surface_add_eventMateusz Polrola2016-05-301-0/+4
| | | | | | | | | | | | Iterating over empty list will modify first value passed to wl_list_for_each, but that won't be valid list entry, which in case of send_surface_add_even leads to crash. V2 change: Use break instead of continue Signed-off-by: Mateusz Polrola <mateuszx.potrola@intel.com> Signed-off-by: Wataru Natsume <wataru_natsume@xddp.denso.co.jp>
* ivi-controller: remove update_layer_propEmre Ucan2016-05-301-42/+0
| | | | | | | | The update_layer_prop function only updates on_screen member of ivilayer struct. But on_screen member is never used. Therefore, I removed the function and the member. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: remove update_surface_propEmre Ucan2016-05-301-42/+0
| | | | | | | | The update_surface_prop function only updates on_layer member of ivisurf struct. But on_layer member is never used. Therefore, I removed the function and the member. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: fix memory leak at update_surface_propEmre Ucan2016-04-071-0/+3
| | | | | | | | | | ivi_layout_get_get_layers_under_surface allocates memory. It is responsibility of the caller to free this memory, as it is stated in ivi-layout.c Therefore, the memory should be freed in the end of the function Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: wait clients before freeing ivisurfEmre Ucan2016-04-071-6/+17
| | | | | | | | | We have to wait before freeing ivisurf that all clients destroy their proxies. Otherwise, a client could send an event to the ivisurf just after we destroyed it. This would cause a race condition and potentially SEGV. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: wait clients before freeing ivilayerEmre Ucan2016-04-071-10/+22
| | | | | | | | | | | | | | We have to wait before freeing ivilayer that all clients destroy their proxies. Otherwise, a client could send an event to the ivilayer just after we destroyed it. This would cause a race condition and potentially SEGV. Furthermore, the layout_layer pointer of ivilayer set to NULL after ivilayer freed in the old implementation. Therefore, old implementation writes 4 bytes to invalid location. This implementation also solves the invalid write problem by moving the free code. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: fixed string copy in controller_screen_screenshotMateusz Polrola2016-03-311-2/+1
| | | | | | | | | | With earlier implementation memory for NULL byte of l->filename string was not being allocated by malloc (strlen is returning length of string without NULL terminating byte) which may result in some random characters appended in filename string. Now strdup is begin used for string copy instead of malloc/strcpy. Signed-off-by: Mateusz Polrola <mateuszx.potrola at intel.com>
* cmake: use LIB_SUFFIX variable for LIBRARY DESTINATIONEugen Friedrich2016-03-291-1/+1
| | | | | | | | | | this patch will allow to install the modules and libraries in correct library directory e.g. if we are built for 64 bit architecture libraries are installed in /lib$LIB_SUFFIX weston modules are installed in /lib$LIB_SUFFIX/weston Signed-off-by: Eugen Friedrich <efriedrich@de.adit-jv.com>
* ivi-controller: don't send content removed eventEmre Ucan2016-03-211-1/+0
| | | | | | | It is unnecessary to send content removed event to the controller. It is enough to send destroyed event. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: Send process ID that created surface to client.Wataru Natsume2016-03-211-1/+9
| | | | | | createPid should be a pid of process that creates surface. Signed-off-by: Wataru Natsume <wnatsume@jp.adit-jv.com>
* ivi-controller: simplify get_layers functionEmre Ucan2016-03-041-22/+11
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: simplify get_surface functionEmre Ucan2016-03-041-19/+11
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: don't send wrong layer resource to clientEmre Ucan2016-02-051-1/+5
| | | | | | | | | | | It is wrong to send surface_send_layer event with resources of every client. Instead, the event should only sent once with the layer resource of client, which owns also the surface resource. Otherwise a wayland communication error happens, because a client gets a surface_send_layer event with a resource which is owned by another client. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-share: Initial implementation of ivi_share protocol.Nobuhiko Tanibata2015-12-235-0/+1025
| | | | | | It uses libgbm to handle id to share graphic buffer inter processes. Signed-off-by: Nobuhiko Tanibata <ntanibata@jp.adit-jv.com>
* ivi-input-controller: restructure directory to build and a way to specify ↵Nobuhiko Tanibata2015-12-051-0/+42
| | | | | | | | | | | the shared library. ivi-input-controller shall work with ivi-controller.so not solely. So the patch proposes a way to specify it as a ivi-input-module in weston.ini. The shared library, ivi-input-controller.so, is loaded by ivi-controller.so. Signed-off-by: Nobuhiko Tanibata <ntanibata@jp.adit-jv.com>
* ivi-controller: fixed screenshot function to capture current frameMitul Chokshi2015-11-041-7/+49
| | | | | | | | | | | With earlier implementation read_pixels was called without weston_output_schedule_repaint, causing screenshot to have image of previously triggered screenshot event. & first screenshot was always blank. Now we add frame listener, call weston_output_schedule_repaint and then capture the screenshot in the frame listener. Signed-off-by: Mitul Chokshi <mitul.chokshi@intel.com>
* protocol: update required wayland/weston version to 1.9Emre Ucan2015-09-241-2/+2
| | | | | | | | | 1. weston_seat interface is changed at version 1.9 and it is not compatible with 1.8 2. Surface clipping works in version 1.9 of weston. 3. Some bugfixes are landed in version 1.9. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Signed-off-by: Nobuhiko Tanibata <ntanibata@jp.adit-jv.com>
* ivi-controller: remove struct link_shell_weston_surfaceEmre Ucan2015-09-221-8/+0
| | | | | | Because it is not used. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: remove unused members of ivishell structEmre Ucan2015-09-222-27/+0
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: remove struct ivicontroller_layerEmre Ucan2015-09-222-116/+32
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: remove struct ivicontroller_screenEmre Ucan2015-09-222-100/+16
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: remove struct ivicontroller_surfaceEmre Ucan2015-09-222-127/+30
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: multi screens supportNobuhiko Tanibata2015-08-281-2/+2
| | | | | | | Previous code used fixed screen 0 only. The new code creates multi ivi-screens according to the number of screen from output_list. Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
* ivi-controller: remove struct link_layerEmre Ucan2015-08-271-33/+5
| | | | | | | | | A surface can be on only one layer. Therefore, the struct link_layer is not required. Instead, struct ivisurface has a pointer to the layer. In the future, A feature that a surface belongs to several layers would be supported if somebody requires. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: remove struct link_screenEmre Ucan2015-08-271-32/+4
| | | | | | | | | A layer can be on only one screen. Therefore, the struct link_screen is not required. Instead, struct ivilayer has a pointer to the screen. In the future, a feature to support that a layer belongs to several screens would be supported again if somebody requires. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: remove redundant wl_list_empty/init callsNobuhiko Tanibata2015-08-271-12/+1
| | | | | | | | | | | | | | | | Checking wl_list_empty() on a link offers no information: if it returns true, wl_list_remove() is safe to do. If it returns false, you still do not know if wl_list_remove() is safe; the link could be part of a list, or the link could be "uninitialized" (e.g. just wl_list_remove()'d). (From Pekka Paalanen's comment at http://lists.freedesktop.org/archives/wayland-devel/2015-August/023987.html). Calling wl_list_init just before wl_list_insert is redundant. Because the links of the list are not read before it is overwritten by wl_list_insert. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>
* ivi-controller: use image_size for surface_screenshot APIEmre Ucan2015-07-211-1/+1
| | | | | | | image_buffer has a size of image_size. Therefore, image_size should be used in the write operation. Otherwise, weston crashes. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: add surface_configure_event to send_surface_eventEmre Ucan2015-07-081-1/+28
| | | | | | | surface_configure_event sends the ivi_controller_surface_send_configuration event with original dimensions of the wayland-buffer of a surface. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* CMakeLists: version check update to wayland/weston 1.8.0Emre Ucan2015-06-191-2/+2
| | | | | | otherwise ilm_takeSurfaceScreenshot causes SIGSEGV for weston-ivi-shell Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: search global directories for compositor.hEmre Ucan2015-06-194-4/+3
| | | | | | | compositor.h is not located in the source directory of wayland-ivi-extension. Therefore, brackets should be used instead of quotation marks. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* cmake: remove cairo dependencyEmre Ucan2015-06-151-5/+0
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller,ivi-extensions: include ivi-controller-impl.hEmre Ucan2015-06-152-0/+2
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: add ivi-controller-impl.h fileEmre Ucan2015-06-151-0/+41
| | | | | | | | | init_ivi_shell and setup_ivi_controller_server functions are defined at ivi-controller-impl.c, but called at ivi-extensions.c. They are not declared at the compilation of ivi-extension.c. I am introducing with this patch a new header file to avoid -Wimplicit-function-declaration Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: do not add unnecessary header filesEmre Ucan2015-06-151-6/+0
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: fix compiler warnings -Wpointer-signEmre Ucan2015-06-151-9/+10
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: fix compiler warnings -Wunused-variableEmre Ucan2015-06-151-11/+0
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-extension: fix compiler warning -Wreturn-typeEmre Ucan2015-06-151-1/+1
| | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* cmake: remove unnecessary dependencies from ivi-controllerEmre Ucan2015-05-211-14/+0
| | | | | | ivi-controller does not have a dependency to GLES, EGL or weston libraries. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-controller: do not add GLESv2 headerEmre Ucan2015-05-211-1/+0
| | | | | | GLES is not used since it is removed from controller_surface_screenshot Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>