Add new functions for RPC-Port 65/259865/31
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 16 Jun 2021 06:46:30 +0000 (15:46 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 9 Jul 2021 03:21:07 +0000 (12:21 +0900)
commit37d76f0b905a8a9f1ff46005e4cf1507714c7c23
treef11692ec180460f3d25edc88e2c5426321fadc70
parent23bb037cbea677ef189fd6263c139b68b3be11e9
Add new functions for RPC-Port

After this patch is applied, the rpc-port uses unix domain socket
instead of socket pair. When the stub calls aul_rpc_port_create(), AMD
creates the socket. And then, AMD sends the socket fd to the stub.
The stub process uses the received socket fd for managing the connection.

Adds:
 - aul_rpc_port_usr_prepare_stub()
 - aul_rpc_port_create()
 - aul_rpc_port_usr_create()
 - aul_rpc_port_destroy()
 - aul_rpc_port_usr_destroy()
 - aul_rpc_port_add_watch()
 - aul_rpc_port_usr_add_watch()
 - aul_rpc_port_remove_watch()
 - aul_rpc_port_exist()
 - aul_rpc_port_usr_exist()
 - aul_rpc_port_get_path()
 - aul_rpc_port_usr_get_path()

Change-Id: I71a7bdaf7ba50e456c6662c524bf3d833030e4e6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/aul_cmd.h
include/aul_rpc_port.h
src/aul_cmd.c
src/aul_rpc_port.cc