*/
typedef void (*mm_sound_volume_changed_cb) (volume_type_t type, unsigned int volume, void *user_data);
-
-
-
int mm_sound_add_volume_changed_callback(mm_sound_volume_changed_cb func, void* user_data, unsigned int *id);
-
-/**
- * This function is to remove volume changed callback.
- *
- * @param type [in] volume type to set change callback function
- *
- * @return This function returns MM_ERROR_NONE on success, or negative value
- * with error code.
- * @remark None.
- * @pre Callback function should be registered previously for given volume type.
- * @post Callback function will not be called anymore.
- * @see volume_type_t
- * @par Example
- * @code
-void _volume_callback(void *data)
-{
- printf("Callback function\n");
-}
-
-int volume_callback()
-{
- int ret = 0;
- int vol_type = VOLUME_TYPE_MEDIA;
-
- mm_sound_volume_add_callback(vol_type, _volume_callback, NULL);
-
- ret = mm_sound_volume_remove_callback(vol_type);
- if ( MM_ERROR_NONE == ret)
- {
- printf("Remove callback success\n");
- }
- else
- {
- printf("Remove callback failed\n");
- }
-
- return ret;
-}
-
- * @endcode
- */
-int mm_sound_volume_remove_callback(volume_type_t type);
-
/**
* This function is to remove volume change callback.
*
}
EXPORT_API
-int mm_sound_volume_remove_callback(volume_type_t type)
-{
- /* FIXME : Will be removed */
- return MM_ERROR_NOT_SUPPORT_API;
-}
-
-EXPORT_API
int mm_sound_add_volume_changed_callback(mm_sound_volume_changed_cb func, void* user_data, unsigned int *subs_id)
{
int ret = MM_ERROR_NONE;