projects
/
framework
/
api
/
wav-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9bbd1aa
)
add static
author
SeungKeun Lee
<sngn.lee@samsung.com>
Tue, 21 Feb 2012 02:34:40 +0000
(11:34 +0900)
committer
SeungKeun Lee
<sngn.lee@samsung.com>
Tue, 21 Feb 2012 02:34:40 +0000
(11:34 +0900)
src/wav_player.c
patch
|
blob
|
history
diff --git
a/src/wav_player.c
b/src/wav_player.c
index
ee2a469
..
34ef36b
100755
(executable)
--- a/
src/wav_player.c
+++ b/
src/wav_player.c
@@
-36,7
+36,7
@@
typedef struct _cb_data_{
-
int
_convert_wav_player_error_code(const char *func, int code){
+
static int _
_convert_wav_player_error_code(const char *func, int code){
int ret = WAV_PLAYER_ERROR_INVALID_OPERATION;
char *errorstr = NULL;
switch(code)
int ret = WAV_PLAYER_ERROR_INVALID_OPERATION;
char *errorstr = NULL;
switch(code)
@@
-69,7
+69,7
@@
int _convert_wav_player_error_code(const char *func, int code){
}
}
-
void
_internal_complete_cb(void *user_data){
+
static void _
_internal_complete_cb(void *user_data){
_cb_data * cb_data = (_cb_data*)user_data;
if(!cb_data)
return;
_cb_data * cb_data = (_cb_data*)user_data;
if(!cb_data)
return;
@@
-90,10
+90,10
@@
int wav_player_start(const char *path, sound_type_e type , wav_player_playback_
if( path == NULL)
if( path == NULL)
- return _convert_wav_player_error_code(__func__, WAV_PLAYER_ERROR_INVALID_PARAMETER);
+ return _
_
convert_wav_player_error_code(__func__, WAV_PLAYER_ERROR_INVALID_PARAMETER);
if( type < SOUND_TYPE_SYSTEM || type > SOUND_TYPE_CALL )
if( type < SOUND_TYPE_SYSTEM || type > SOUND_TYPE_CALL )
- return _convert_wav_player_error_code(__func__, WAV_PLAYER_ERROR_INVALID_PARAMETER);
+ return _
_
convert_wav_player_error_code(__func__, WAV_PLAYER_ERROR_INVALID_PARAMETER);
m_path[0] = '\0';
if( path[0] != '/' ){
m_path[0] = '\0';
if( path[0] != '/' ){
@@
-105,10
+105,10
@@
int wav_player_start(const char *path, sound_type_e type , wav_player_playback_
strncat(m_path, path, PATH_MAX-strlen(m_path));
if( cb ){
strncat(m_path, path, PATH_MAX-strlen(m_path));
if( cb ){
- _completed_cb = _internal_complete_cb;
+ _completed_cb = _
_
internal_complete_cb;
cb_data = (_cb_data *)malloc(sizeof(_cb_data));
if(cb_data == NULL )
cb_data = (_cb_data *)malloc(sizeof(_cb_data));
if(cb_data == NULL )
- return _convert_wav_player_error_code(__func__, WAV_PLAYER_ERROR_INVALID_OPERATION);
+ return _
_
convert_wav_player_error_code(__func__, WAV_PLAYER_ERROR_INVALID_OPERATION);
cb_data->cb = cb;
cb_data->uesr_data = user_data;
}
cb_data->cb = cb;
cb_data->uesr_data = user_data;
}
@@
-123,10
+123,10
@@
int wav_player_start(const char *path, sound_type_e type , wav_player_playback_
free(cb_data);
free(cb_data);
- return _convert_wav_player_error_code(__func__, ret);
+ return _
_
convert_wav_player_error_code(__func__, ret);
}
int wav_player_stop(int id){
}
int wav_player_stop(int id){
- return _convert_wav_player_error_code(__func__, mm_sound_stop_sound(id));
+ return _
_
convert_wav_player_error_code(__func__, mm_sound_stop_sound(id));
}
}