add APIs for getting SIM init status and importing SIM contacts by sim slot no
[platform/core/pim/contacts-service.git] / client / ctsvc_client_service.c
index b4440f7..ab2ad21 100644 (file)
@@ -3,9 +3,6 @@
  *
  * Copyright (c) 2010 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: Dohyung Jin <dh.jin@samsung.com>
- *                 Jongwon Lee <gogosing.lee@samsung.com>
- *                 Donghee Ye <donghee.ye@samsung.com>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -37,16 +34,14 @@ API int contacts_connect_with_flags(unsigned int flags)
        ret = ctsvc_client_handle_get_p_with_id(id, &contact);
        if (CONTACTS_ERROR_NO_DATA == ret) {
                ret = ctsvc_client_handle_create(id, &contact);
-               if (CONTACTS_ERROR_NONE != ret)
-               {
-                       CTS_ERR("ctsvc_client_handle_create() Fail(%d)", ret);
+               if (CONTACTS_ERROR_NONE != ret) {
+                       ERR("ctsvc_client_handle_create() Fail(%d)", ret);
                        if (CONTACTS_ERROR_INVALID_PARAMETER == ret)
                                return CONTACTS_ERROR_INTERNAL;
                        return ret;
                }
-       }
-       else if (CONTACTS_ERROR_NONE != ret) {
-               CTS_ERR("ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
+       } else if (CONTACTS_ERROR_NONE != ret) {
+               ERR("ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
                return ret;
        }
 
@@ -68,16 +63,14 @@ API int contacts_connect(void)
        ret = ctsvc_client_handle_get_p_with_id(id, &contact);
        if (CONTACTS_ERROR_NO_DATA == ret) {
                ret = ctsvc_client_handle_create(id, &contact);
-               if (CONTACTS_ERROR_NONE != ret)
-               {
-                       CTS_ERR("ctsvc_client_handle_create() Fail(%d)", ret);
+               if (CONTACTS_ERROR_NONE != ret) {
+                       ERR("ctsvc_client_handle_create() Fail(%d)", ret);
                        if (CONTACTS_ERROR_INVALID_PARAMETER == ret)
                                return CONTACTS_ERROR_INTERNAL;
                        return ret;
                }
-       }
-       else if (CONTACTS_ERROR_NONE != ret) {
-               CTS_ERR("ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
+       } else if (CONTACTS_ERROR_NONE != ret) {
+               ERR("ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
                return ret;
        }
        ret = ctsvc_client_connect(contact);
@@ -117,16 +110,14 @@ API int contacts_connect_on_thread(void)
        ret = ctsvc_client_handle_get_p_with_id(id, &contact);
        if (CONTACTS_ERROR_NO_DATA == ret) {
                ret = ctsvc_client_handle_create(id, &contact);
-               if (CONTACTS_ERROR_NONE != ret)
-               {
-                       CTS_ERR("ctsvc_client_handle_create() Fail(%d)", ret);
+               if (CONTACTS_ERROR_NONE != ret) {
+                       ERR("ctsvc_client_handle_create() Fail(%d)", ret);
                        if (CONTACTS_ERROR_INVALID_PARAMETER == ret)
                                return CONTACTS_ERROR_INTERNAL;
                        return ret;
                }
-       }
-       else if (CONTACTS_ERROR_NONE != ret) {
-               CTS_ERR("ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
+       } else if (CONTACTS_ERROR_NONE != ret) {
+               ERR("ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
                return ret;
        }