Remove fixed parameters 85/310185/1
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 24 Apr 2024 00:08:09 +0000 (09:08 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Wed, 24 Apr 2024 00:08:09 +0000 (09:08 +0900)
First parameter of ms_ipc_request_update_tcp() is always 'MS_MSG_DB_UPDATE'.
So removed the parameter from ms_ipc_request_update_tcp().

Change-Id: I789e604501348250477e1f6d82a1ba04d243a73a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
lib/include/media-util-ipc.h
lib/media-util-db.c
lib/media-util-ipc.c
packaging/media-server.spec

index b12e0a4..8fa0d1e 100644 (file)
@@ -83,7 +83,7 @@ int ms_ipc_send_msg_to_server_tcp(int sockfd, ms_comm_msg_s *send_msg, struct so
 int ms_ipc_send_msg_to_client_tcp(int sockfd, ms_comm_msg_s *send_msg, struct sockaddr_un *client_addr);
 int ms_ipc_accept_client_tcp(int serv_sock, int* client_sock);
 int ms_ipc_request_recovery(uid_t uid);
-int ms_ipc_request_update_tcp(ms_msg_type_e msg_type, const char *request_msg, uid_t uid);
+int ms_ipc_request_update_tcp(const char *request_msg, uid_t uid);
 
 #ifdef __cplusplus
 }
index f24995d..ebd0b31 100644 (file)
@@ -305,7 +305,7 @@ int media_db_request_update_db(const char *query_str, uid_t uid)
                return ret;
        }
 #endif
-       ret = ms_ipc_request_update_tcp(MS_MSG_DB_UPDATE, query_str, uid);
+       ret = ms_ipc_request_update_tcp(query_str, uid);
 
        if (ret != MS_MEDIA_ERR_NONE)
                MSAPI_DBG_ERR("ms_ipc_request_update_tcp failed : %d", ret);
index 13ecbae..e079738 100644 (file)
@@ -250,7 +250,7 @@ RETRY:
        return ret;
 }
 
-int ms_ipc_request_update_tcp(ms_msg_type_e msg_type, const char *request_msg, uid_t uid)
+int ms_ipc_request_update_tcp(const char *request_msg, uid_t uid)
 {
        int ret = MS_MEDIA_ERR_NONE;
        int sockfd = -1;
@@ -261,7 +261,7 @@ int ms_ipc_request_update_tcp(ms_msg_type_e msg_type, const char *request_msg, u
 
        ms_comm_msg_s send_msg = { 0, };
 
-       send_msg.msg_type = msg_type;
+       send_msg.msg_type = MS_MSG_DB_UPDATE;
        if (g_strlcpy(send_msg.msg, request_msg, sizeof(send_msg.msg)) >= MAX_MSG_SIZE) {
                MSAPI_DBG_ERR("request_msg exceeds MAX_MSG_SIZE");
                return MS_MEDIA_ERR_INVALID_PARAMETER;
index 8c953f0..d566598 100644 (file)
@@ -1,6 +1,6 @@
 Name:       media-server
 Summary:    A server for media content management
-Version:    0.5.8
+Version:    0.5.9
 Release:    0
 Group:      Multimedia/Service
 License:    Apache-2.0