Merge "[Tizen] add vulkan local header" into tizen
[platform/upstream/SDL.git] / src / video / tizen / SDL_ecore_ipc.c
index 1c6abc8..8a7edfe 100755 (executable)
@@ -65,7 +65,7 @@ LockFile* CreateLockeFile(char* LockFileName)
     lockFile->fileDescriptor = open(LockFileName, O_RDWR);
     if(lockFile->fileDescriptor == -1)
     {
-        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,"[SDL]Fail to open lock file!");
+        SDL_LogError(SDL_LOG_CATEGORY_ASSERT,"[SDL]Fail to open lock file!");
         return NULL;
 
     }
@@ -114,7 +114,7 @@ void Tizen_Indicator_SharedFile_Free(SharedIndicatorInfo *shared_info, int n)
         if(lockFile->fileDescriptor>=0) {
             if(lockf(lockFile->fileDescriptor, F_ULOCK, 0) <0 )
             {
-               SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,"[SDL] Lock release fail");
+               SDL_LogError(SDL_LOG_CATEGORY_ASSERT,"[SDL] Lock release fail");
                return;
             }
         }
@@ -141,11 +141,9 @@ void LoadSharedImage(Ecore_Ipc_Event_Server_Data*  epcEvent, SharedIndicatorInfo
 {
     char sharedFilename[256];
     int n = epcEvent->response;
-    SDL_Log("[SDL] LoadSharedImage print n: %d\n",n);
     if(n < SHARED_FILE_NUMBER)
     {
         snprintf(sharedFilename, 256, "/%s-%d.%d", shared_info->fileInfo[n].SharedFileName, shared_info->fileInfo[n].SharedFileID, shared_info->fileInfo[n].SharedFileNumber);
-        SDL_Log("[SDL]The shared file name is %s", sharedFilename);
 
         Tizen_Indicator_SharedFile_Free(shared_info, n);
 
@@ -156,7 +154,7 @@ void LoadSharedImage(Ecore_Ipc_Event_Server_Data*  epcEvent, SharedIndicatorInfo
         }
         else
         {
-            SDL_Log("[SDL]fileInfo->sharedFile == NULL");
+            SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "[SDL]fileInfo->sharedFile == NULL");
         }
     }
 }
@@ -168,32 +166,27 @@ void DataReceived(void* event, SharedIndicatorInfo* shared_info)
     {
         case OP_SHM_REF0:
         {
-            SDL_Log("[SDL]Indicator client received: OP_SHM_REF0\n");
             SetSharedImageInfo(epcEvent, shared_info);
             break;
         }
         case OP_SHM_REF1:
         {
-            SDL_Log("[SDL]Indicator client received: OP_SHM_REF1\n");
             SetLockFileInfo(epcEvent, shared_info);
             break;
         }
         case OP_SHM_REF2:
         {
-            SDL_Log("[SDL]Indicator client received: OP_SHM_REF2\n");
             LoadSharedImage(epcEvent, shared_info);
             break;
         }
         case OP_UPDATE:
         {
-            int n = epcEvent->response;
-            SDL_Log("[SDL]Indicator client received: OP_UPDATE : %d\n", n);
+            //int n = epcEvent->response;
             break;
         }
         case OP_UPDATE_DONE:
         {
             int n = epcEvent->response;
-            SDL_Log("[SDL] OP_UPDATE_DONE n: %d\n", n);
             if( n < SHARED_FILE_NUMBER)
             {
                 shared_info->cur_idx = n;
@@ -202,7 +195,6 @@ void DataReceived(void* event, SharedIndicatorInfo* shared_info)
         }
         case OP_GL_REF:
         {
-            SDL_Log("[SDL] receive socket to client (resource_id:%u)", epcEvent->ref);
             if (Tizen_remote_surface_init())
             {
                 Tizen_remote_indicator(epcEvent->ref);
@@ -211,7 +203,6 @@ void DataReceived(void* event, SharedIndicatorInfo* shared_info)
         }
         case OP_RESIZE:
         {
-            SDL_Log("[SDL]Indicator client received: OP_RESIZE\n");
             break;
         }
     }
@@ -219,15 +210,13 @@ void DataReceived(void* event, SharedIndicatorInfo* shared_info)
 
 Eina_Bool handler_server_add(void *data, int ev_type EINA_UNUSED, void *ev)
 {
-    Ecore_Ipc_Event_Server_Add *e = (Ecore_Ipc_Event_Server_Add *)ev;
-    SDL_Log("Got a server add %p", e->server);
+    //Ecore_Ipc_Event_Server_Add *e = (Ecore_Ipc_Event_Server_Add *)ev;
     return 1;
 }
 
 Eina_Bool handler_server_del(void *data, int ev_type EINA_UNUSED, void *ev)
 {
-    Ecore_Ipc_Event_Server_Del *e = (Ecore_Ipc_Event_Server_Del *)ev;
-    SDL_Log("Got a server del %p", e->server);
+    //Ecore_Ipc_Event_Server_Del *e = (Ecore_Ipc_Event_Server_Del *)ev;
     return 1;
 }
 
@@ -244,7 +233,7 @@ Ecore_Ipc_Server* serverConnection(const char* serviceName, SharedIndicatorInfo*
 
     if(!ecore_ipc_init())
     {
-        SDL_Log("cannot init ecore_con!");
+        SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "cannot init ecore_con!");
         ecore_shutdown();
         return NULL;
     }