diff options
Diffstat (limited to 'ivi-shell/ivi-layout-export.h')
-rw-r--r-- | ivi-shell/ivi-layout-export.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h index 9784cf3e..016c4396 100644 --- a/ivi-shell/ivi-layout-export.h +++ b/ivi-shell/ivi-layout-export.h @@ -146,6 +146,10 @@ typedef void(*surfaceRemoveNotificationFunc)(struct ivi_layout_surface *ivisurf, typedef void(*surfaceConfigureNotificationFunc)(struct ivi_layout_surface *ivisurf, void *userdata); +typedef void(*ivi_controller_surface_content_callback)(struct ivi_layout_surface *ivisurf, + int32_t content, + void *userdata); + /** * \brief to be called by ivi-shell in order to set initail view of * weston_surface. @@ -326,6 +330,17 @@ ivi_layout_surfaceSetNativeContent(struct weston_surface *wl_surface, */ /** + * \brief Set an observer callback for surface content status change. + * + * \return 0 if the method call was successful + * \return -1 if the method call was failed + */ +int32_t +ivi_layout_surfaceSetContentObserver(struct ivi_layout_surface *ivisurf, + ivi_controller_surface_content_callback callback, + void* userdata); + +/** * \brief initialize ivi_layout_surface dest/source width and height */ /* |