Able to get client pid at muse module simply 42/206442/2
authorYoungHun Kim <yh8004.kim@samsung.com>
Mon, 20 May 2019 02:01:52 +0000 (11:01 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Mon, 20 May 2019 02:06:22 +0000 (11:06 +0900)
Change-Id: Ie187a6fb04c77599d112a2790d06b8b12df3b563

packaging/mused.spec
server/include/muse_server.h
server/src/muse_server.c

index 00a2d79..722d0c9 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mused
 Summary:    A multimedia daemon
-Version:    0.3.77
+Version:    0.3.78
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0 and BSD-3-Clause
index 58b981a..75d2735 100644 (file)
@@ -54,6 +54,7 @@ int muse_server_ipc_set_handle(muse_module_h m, intptr_t handle);
 int muse_server_ipc_get_fd(muse_module_h m, int *fd);
 int muse_server_ipc_get_fds(muse_module_h m, int *fds, int *number);
 int muse_server_ipc_set_fd(muse_module_h m, int fd);
+int muse_server_ipc_get_client_pid(muse_module_h m);
 
 /* security */
 bool muse_server_security_check_cynara(int fd, const char *privilege);
index 18d39a8..713e623 100644 (file)
@@ -438,6 +438,12 @@ int muse_server_ipc_set_fd(muse_module_h m, int fd)
        return MM_ERROR_NONE;
 }
 
+int muse_server_ipc_get_client_pid(muse_module_h m)
+{
+       muse_return_val_if_fail(m, MUSE_ERR);
+       return m->pid;
+}
+
 /* security */
 bool muse_server_security_check_cynara(int fd, const char *privilege)
 {