Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/13'
Browse files Browse the repository at this point in the history
* upstream/pull/13
  ilmControl: update comments for ilm_[un]registeNotification apis

  Reviewed-by: Emre Ucan <[email protected]>
  • Loading branch information
Eugen Friedrich committed Nov 18, 2016
2 parents 0ad95c6 + cc9ad66 commit b7bedee
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ivi-layermanagement-api/ilmControl/include/ilm_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,23 +465,22 @@ ilmErrorTypes ilm_surfaceAddNotification(t_ilm_surface surface, surfaceNotificat
ilmErrorTypes ilm_surfaceRemoveNotification(t_ilm_surface surface);

/**
* \brief register for notification on property creation/deletion events for surfaces/layers
* \brief register notification callback for creation/deletion of ilm surfaces/layers
* \ingroup ilmControl
* \param[in] surface id of surface to register for notification
* \param[in] callback pointer to function to be called for notification
callback function is defined as:
void cb(ilmObjectType o, t_ilm_uint id, t_ilm_bool created, void *user_data)
* \param[in] user_data pointer to data which will be passed to a notification callback
* \return ILM_SUCCESS if the method call was successful
* \return ILM_FAILED if the client can not call the method on the service.
* \return ILM_ERROR_INVALID_ARGUMENT if the given surface already has notification callback registered
*/
ilmErrorTypes ilm_registerNotification(notificationFunc callback, void *user_data);

/**
* \brief remove notification on property changes of surface
* \ingroup ilmClient
* \param[in] surface id of surface to remove notification
* \brief unregister notification for creation/deletion events of ilm surfaces/layers
* \ingroup ilmControl
* \return ILM_SUCCESS if the method call was successful
* \return ILM_FAILED if the client can not call the method on the service.
* \return ILM_ERROR_INVALID_ARGUMENT if the given surface has no notification callback registered
*/
ilmErrorTypes ilm_unregisterNotification();
#ifdef __cplusplus
Expand Down

0 comments on commit b7bedee

Please sign in to comment.