Replace server connection close API 29/146229/1 accepted/tizen/unified/20170830.160904 submit/tizen/20170829.012725
authorJeongmo Yang <jm80.yang@samsung.com>
Fri, 25 Aug 2017 10:05:32 +0000 (19:05 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Fri, 25 Aug 2017 10:05:32 +0000 (19:05 +0900)
In signal handler, fds will be closed in fd-id table,
but, closed fd by muse_core_connection_close is not removed from table.
It can cause unexpected behavior in signal handler,
so new API is added and it removes closed fd in fd-id table.

[Version] 0.3.5
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20170825.1]

Change-Id: Ie3ad3203f6b5f5d6d01789f0c46be07ce8a9f220
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/capi-media-camera.spec
src/camera.c

index 41eb4c1..b9c6d1b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-camera
 Summary:    A Camera API
-Version:    0.3.4
+Version:    0.3.5
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index cbd973c..898eef1 100644 (file)
@@ -2343,7 +2343,7 @@ static void _camera_client_callback_destroy(camera_cb_info_s *cb_info)
        }
 
        if (cb_info->fd > -1) {
-               muse_core_connection_close(cb_info->fd);
+               muse_client_close(cb_info->fd);
                cb_info->fd = -1;
        }
 
@@ -2503,7 +2503,7 @@ int _camera_independent_request(int api, int device_type, const char *key, int *
 
 _REQUEST_EXIT:
        if (sock_fd > -1) {
-               muse_core_connection_close(sock_fd);
+               muse_client_close(sock_fd);
                sock_fd = -1;
        }
 
@@ -2624,7 +2624,7 @@ ErrorExit:
        }
 
        if (sock_fd > -1) {
-               muse_core_connection_close(sock_fd);
+               muse_client_close(sock_fd);
                sock_fd = -1;
        }