Remove unwanted code 06/155106/2
authoraravind.gara <aravind.gara@samsung.com>
Thu, 12 Oct 2017 05:46:17 +0000 (14:46 +0900)
committeraravind.gara <aravind.gara@samsung.com>
Thu, 12 Oct 2017 05:57:59 +0000 (14:57 +0900)
[Version] 0.0.8
[Issue Type] Cleanup

Change-Id: I5aa2adcfc921bcc130fe372e271b9f7b52559ee8
Signed-off-by: aravind.gara <aravind.gara@samsung.com>
include/internal/stream.h
packaging/capi-media-sound-pool.spec
src/stream.c

index 43e0c34..26437b6 100644 (file)
@@ -74,13 +74,11 @@ sound_pool_error_e  _sound_stream_suspend(sound_stream_t *stream);
 sound_pool_error_e _sound_stream_stop(sound_stream_t *stream);
 
 sound_pool_error_e _sound_stream_set_loop(sound_stream_t *stream, unsigned loop);
-sound_pool_error_e _sound_stream_get_loop(sound_stream_t *stream, unsigned *loop);
 
 sound_pool_error_e _sound_stream_set_volume(sound_stream_t *stream, float volume);
 sound_pool_error_e _sound_stream_get_volume(sound_stream_t *stream, float *volume);
 
 sound_pool_error_e _sound_stream_set_mute(sound_stream_t *stream, gboolean mute);
-sound_pool_error_e _sound_stream_get_mute(sound_stream_t *stream, gboolean *mute);
 
 sound_pool_error_e _sound_stream_set_priority(sound_stream_t *stream, unsigned rank);
 sound_pool_error_e _sound_stream_get_priority(sound_stream_t *stream, unsigned *rank);
@@ -94,8 +92,6 @@ sound_pool_error_e _sound_stream_get_state(sound_stream_t *stream,
 sound_pool_error_e _sound_stream_set_callback(sound_stream_t *stream,
                sound_pool_stream_state_changed_cb callback, void *data);
 
-sound_pool_error_e _sound_stream_unset_callback(sound_stream_t *stream);
-
 sound_pool_error_e _sound_stream_send_event(sound_stream_t *stream,
                sound_pool_stream_state_e state);
 
index 759644d..23e0c85 100644 (file)
@@ -1,5 +1,5 @@
 Name:       capi-media-sound-pool
-Version:    0.0.7
+Version:    0.0.8
 Summary:    Tizen Sound Pool module
 Release:    0
 Group:      Multimedia/Framework
index 3d879c8..c088476 100644 (file)
@@ -184,7 +184,7 @@ static sound_pool_error_e __sound_stream_init(sound_stream_t *stream,
                        "Error occurred when setting sound stream priority parameter");
 
        ret = _sound_stream_set_priority_policy(stream, priority_policy);
-       SP_RETVM_IF (ret != SOUND_POOL_ERROR_NONE, ret,
+       SP_RETVM_IF(ret != SOUND_POOL_ERROR_NONE, ret,
                        "Error occurred when setting sound stream priority_policy parameter");
 
        SP_DEBUG_FLEAVE();
@@ -454,18 +454,6 @@ sound_pool_error_e _sound_stream_set_loop(sound_stream_t *stream, unsigned loop)
        return SOUND_POOL_ERROR_NONE;
 }
 
-sound_pool_error_e _sound_stream_get_loop(sound_stream_t *stream, unsigned *loop)
-{
-       SP_DEBUG_FENTER();
-       SP_INST_CHECK(stream, SOUND_POOL_ERROR_INVALID_PARAMETER);
-       SP_INST_CHECK(loop, SOUND_POOL_ERROR_INVALID_PARAMETER);
-
-       *loop = stream->loop;
-
-       SP_DEBUG_FLEAVE();
-       return SOUND_POOL_ERROR_NONE;
-}
-
 sound_pool_error_e _sound_stream_set_volume(sound_stream_t *stream, float volume)
 {
        SP_DEBUG_FENTER();
@@ -504,18 +492,6 @@ sound_pool_error_e _sound_stream_set_mute(sound_stream_t *stream, gboolean mute)
        return SOUND_POOL_ERROR_NONE;
 }
 
-sound_pool_error_e _sound_stream_get_mute(sound_stream_t *stream, gboolean *mute)
-{
-       SP_DEBUG_FENTER();
-       SP_INST_CHECK(stream, SOUND_POOL_ERROR_INVALID_PARAMETER);
-       SP_INST_CHECK(mute, SOUND_POOL_ERROR_INVALID_PARAMETER);
-
-       *mute = stream->mute;
-
-       SP_DEBUG_FLEAVE();
-       return SOUND_POOL_ERROR_NONE;
-}
-
 sound_pool_error_e _sound_stream_get_volume(sound_stream_t *stream, float *volume)
 {
        SP_DEBUG_FENTER();
@@ -573,7 +549,7 @@ sound_pool_error_e _sound_stream_set_priority(sound_stream_t *stream,
 }
 
 sound_pool_error_e _sound_stream_set_priority_policy(sound_stream_t *stream,
-        sound_pool_stream_priority_policy_e priority_policy)
+               sound_pool_stream_priority_policy_e priority_policy)
 {
        SP_DEBUG_FENTER();
        SP_INST_CHECK(stream, SOUND_POOL_ERROR_INVALID_PARAMETER);
@@ -621,18 +597,6 @@ sound_pool_error_e _sound_stream_set_callback(sound_stream_t *stream,
        return SOUND_POOL_ERROR_NONE;
 }
 
-sound_pool_error_e _sound_stream_unset_callback(sound_stream_t *stream)
-{
-       SP_DEBUG_FENTER();
-       SP_INST_CHECK(stream, SOUND_POOL_ERROR_INVALID_PARAMETER);
-
-       stream->state_cb_info.callback = NULL;
-       stream->state_cb_info.user_data = NULL;
-
-       SP_DEBUG_FLEAVE();
-       return SOUND_POOL_ERROR_NONE;
-}
-
 sound_pool_error_e _sound_pool_get_stream_by_id(sound_pool_t *pool, unsigned id,
                sound_stream_t **stream)
 {