mm_sound: Remove deprecated symbol - mm_sound_volume_remove_callback() 76/217476/1
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 11 Nov 2019 02:01:49 +0000 (11:01 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 11 Nov 2019 02:02:47 +0000 (11:02 +0900)
[Version] 0.12.53
[Issue Type] Clean-up

Change-Id: I45db42cae27ff0537e747118b85cbff5c241684c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/mm_sound.h
mm_sound.c
packaging/libmm-sound.spec

index a7f3f48..4081595 100644 (file)
@@ -338,54 +338,8 @@ typedef enum {
  */
 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.
  *
index 97d4b53..a7b473d 100644 (file)
@@ -55,13 +55,6 @@ static const char* _get_volume_str(volume_type_t type)
 }
 
 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;
index 9762ad6..e4f1e59 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.12.52
+Version:    0.12.53
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0