Modify DCM message structure and so on
[platform/core/multimedia/media-server.git] / lib / media-util-dcm.c
old mode 100644 (file)
new mode 100755 (executable)
index 1c0c835..ccd4953
@@ -54,13 +54,6 @@ typedef struct {
        faceUserData *userData;
 } dcmReq;
 
-enum {
-       DCM_REQUEST_MEDIA,
-       DCM_REQUEST_ALL_MEDIA,
-       DCM_REQUEST_START_FACE_DETECTION,
-       DCM_REQUEST_CANCEL_FACE,
-};
-
 typedef enum
 {
        DCM_PHONE,                      /**< Stored only in phone */
@@ -302,7 +295,7 @@ int _media_dcm_send_request()
 
        MSAPI_DBG("_media_dcm_send_request start");
 
-       err = ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_10, &sock_info);
+       err = ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_60, &sock_info);
        if (err != MS_MEDIA_ERR_NONE) {
                MSAPI_DBG_ERR("ms_ipc_create_client_socket failed");
                return err;
@@ -396,7 +389,7 @@ int _media_dcm_request(int msg_type, const char *path, uid_t uid)
        int pid;
        sock_info.port = MS_DCM_CREATOR_PORT;
 
-       err = ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_10, &sock_info);
+       err = ms_ipc_create_client_socket(MS_PROTOCOL_TCP, MS_TIMEOUT_SEC_60, &sock_info);
        if (err != MS_MEDIA_ERR_NONE) {
                MSAPI_DBG_ERR("ms_ipc_create_client_socket failed");
                return err;