summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2018-05-24 11:55:55 +0900
committerhj kim <backto.kim@samsung.com>2018-05-24 11:55:55 +0900
commit0f238dceac0a013b95d3599a934b9a9747956a85 (patch)
tree6f7936b505cf5567cd8dadd4c15b3a9cb8339f7e
parente8a88cd63612eaac3b164a21097173f14ca1c60d (diff)
downloadmedia-controller-0f238dceac0a013b95d3599a934b9a9747956a85.tar.gz
media-controller-0f238dceac0a013b95d3599a934b9a9747956a85.tar.bz2
media-controller-0f238dceac0a013b95d3599a934b9a9747956a85.zip
Just rename API
Change-Id: I81b0e594f8a2b4e15a143558491b988bcd5961ce
-rwxr-xr-xinclude/media_controller_db.h2
-rwxr-xr-xsrc/media_controller_db.c2
-rwxr-xr-xsrc/media_controller_server.c12
3 files changed, 8 insertions, 8 deletions
diff --git a/include/media_controller_db.h b/include/media_controller_db.h
index 2dedf50..dada6c7 100755
--- a/include/media_controller_db.h
+++ b/include/media_controller_db.h
@@ -58,7 +58,7 @@ int mc_db_get_repeat_mode(void *handle, const char *server_name, mc_repeat_mode_
int mc_db_get_playlist(void *handle, const char *server_name, char **playlist_name, bundle **playlist);
int mc_db_insert_server_address_into_server_list(void *db_handle, const char *address);
-int mc_db_delete_server_address_from_table(void *db_handle, const char *address);
+int mc_db_delete_server_address_from_server_list(void *db_handle, const char *address);
int mc_db_foreach_server_list(void *handle, mc_activated_server_cb callback, void *user_data);
int mc_db_update_server_and_playback_state(void *handle, const char *server_name, mc_server_state_e server_state, mc_playback_states_e playback_state);
diff --git a/src/media_controller_db.c b/src/media_controller_db.c
index f023404..08bd093 100755
--- a/src/media_controller_db.c
+++ b/src/media_controller_db.c
@@ -586,7 +586,7 @@ int mc_db_insert_server_address_into_server_list(void *handle, const char *addre
return ret;
}
-int mc_db_delete_server_address_from_table(void *handle, const char *address)
+int mc_db_delete_server_address_from_server_list(void *handle, const char *address)
{
int ret = MEDIA_CONTROLLER_ERROR_NONE;
char *sql_str = NULL;
diff --git a/src/media_controller_server.c b/src/media_controller_server.c
index d2697fd..cbaeee1 100755
--- a/src/media_controller_server.c
+++ b/src/media_controller_server.c
@@ -979,9 +979,9 @@ int mc_server_create(mc_server_h *server)
if (table_exist && is_latest) {
//To keep latest server's metadata
- ret = mc_db_delete_server_address_from_table(mc_server->db_handle, mc_server->server_name);
+ ret = mc_db_delete_server_address_from_server_list(mc_server->db_handle, mc_server->server_name);
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- mc_error("mc_db_delete_server_address_from_table failed [%d]", ret);
+ mc_error("mc_db_delete_server_address_from_server_list failed [%d]", ret);
__mc_server_destoy(mc_server);
return ret;
}
@@ -1000,9 +1000,9 @@ int mc_server_create(mc_server_h *server)
__mc_server_destoy(mc_server);
return ret;
}
- ret = mc_db_delete_server_address_from_table(mc_server->db_handle, mc_server->server_name);
+ ret = mc_db_delete_server_address_from_server_list(mc_server->db_handle, mc_server->server_name);
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- mc_error("mc_db_delete_server_address_from_table failed [%d]", ret);
+ mc_error("mc_db_delete_server_address_from_server_list failed [%d]", ret);
__mc_server_destoy(mc_server);
return ret;
}
@@ -1049,9 +1049,9 @@ int mc_server_destroy(mc_server_h server)
if (ret != MEDIA_CONTROLLER_ERROR_NONE)
mc_error("fail mc_ipc_unregister_all_listener [%d]", ret);
- ret = mc_db_delete_server_address_from_table(mc_server->db_handle, mc_server->server_name);
+ ret = mc_db_delete_server_address_from_server_list(mc_server->db_handle, mc_server->server_name);
if (ret != MEDIA_CONTROLLER_ERROR_NONE)
- mc_error("fail mc_db_delete_server_address_from_table [%d]", ret);
+ mc_error("fail mc_db_delete_server_address_from_server_list [%d]", ret);
ret = __mc_server_current_is_latest(mc_server, &is_latest);
if (is_latest) {