Revise code
[platform/core/multimedia/libmm-sound.git] / server / include / mm_sound_mgr_codec.h
index fb49b16..e15062e 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <stdbool.h>
 
-#include <mm_source.h>
 #include <mm_sound_stream.h>
 #include "../../include/mm_sound.h"
 
@@ -43,12 +42,10 @@ typedef struct {
        void *msgcallback;              /* Client callback function */
        void *msgdata;                  /* Client callback data */
        void *param;
-       MMSourceType *source; /* Will free plugin */
+       char *pfilename;
        int samplerate;
        int channels;
        int volume_config;
-       int priority;
-       int handle_route;
        bool enable_session;
        char stream_type[MM_SOUND_STREAM_TYPE_LEN];
        int stream_index;
@@ -60,7 +57,7 @@ enum
        MM_SOUND_CODEC_OP_SOUND,
 };
 
-int MMSoundMgrCodecInit(const char *targetdir);
+int MMSoundMgrCodecInit(const char *targetdir, GSourceFunc _shutdown_cb);
 int MMSoundMgrCodecFini(void);
 
 int MMSoundMgrCodecPlay(int *slotid, const mmsound_mgr_codec_param_t *param);