Skip to content
Snippets Groups Projects
Commit 193e301c authored by Ucan, Emre (ADITG/SW1)'s avatar Ucan, Emre (ADITG/SW1) Committed by Pekka Paalanen
Browse files

ivi-shell: remove content_observer notification


The content observer notification struct and its
set API (ivi_layout_surface_set_content_observer)
are removed. Because they are unused.

Signed-off-by: default avatarEmre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent dada6e3b
No related branches found
No related tags found
No related merge requests found
......@@ -320,17 +320,6 @@ struct ivi_layout_interface {
int32_t (*surface_set_orientation)(struct ivi_layout_surface *ivisurf,
enum wl_output_transform orientation);
/**
* \brief Set an observer callback for ivi_surface content status change.
*
* \return IVI_SUCCEEDED if the method call was successful
* \return IVI_FAILED if the method call was failed
*/
int32_t (*surface_set_content_observer)(
struct ivi_layout_surface *ivisurf,
ivi_controller_surface_content_callback callback,
void* userdata);
/**
* \brief register for notification on property changes of ivi_surface
*
......
......@@ -54,11 +54,6 @@ struct ivi_layout_surface {
struct wl_list layer_list;
} order;
struct {
ivi_controller_surface_content_callback callback;
void *userdata;
} content_observer;
struct wl_signal configured;
};
......
......@@ -2394,21 +2394,6 @@ ivi_layout_surface_configure(struct ivi_layout_surface *ivisurf,
ivisurf);
}
static int32_t
ivi_layout_surface_set_content_observer(struct ivi_layout_surface *ivisurf,
ivi_controller_surface_content_callback callback,
void* userdata)
{
int32_t ret = IVI_FAILED;
if (ivisurf != NULL) {
ivisurf->content_observer.callback = callback;
ivisurf->content_observer.userdata = userdata;
ret = IVI_SUCCEEDED;
}
return ret;
}
struct ivi_layout_surface*
ivi_layout_surface_create(struct weston_surface *wl_surface,
uint32_t id_surface)
......@@ -2530,7 +2515,6 @@ static struct ivi_layout_interface ivi_layout_interface = {
.surface_set_source_rectangle = ivi_layout_surface_set_source_rectangle,
.surface_set_destination_rectangle = ivi_layout_surface_set_destination_rectangle,
.surface_set_orientation = ivi_layout_surface_set_orientation,
.surface_set_content_observer = ivi_layout_surface_set_content_observer,
.surface_add_notification = ivi_layout_surface_add_notification,
.surface_remove_notification = ivi_layout_surface_remove_notification,
.surface_get_weston_surface = ivi_layout_surface_get_weston_surface,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment