kdbus: share fd and pool with libdbuspolicy 72/201472/6 accepted/tizen/unified/20190322.075523 submit/tizen/20190321.094448
authorAdrian Szyndela <adrian.s@samsung.com>
Wed, 13 Mar 2019 15:39:26 +0000 (16:39 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Tue, 19 Mar 2019 07:48:23 +0000 (08:48 +0100)
commitf2727883c1d03e2911da341589e72570f77b8d70
tree5614e34d83be2ed493921d77a581d659ba2617b2
parent19cebb526d4cce798d2a28f693b133210c0db357
kdbus: share fd and pool with libdbuspolicy

This uses new functionality of libdbuspolicy: using client's pool and fd.
This way libdbuspolicy doesn't have to create its own connection,
and what is more important it doesn't have to create its own 1MB pool.
This is at the cost of using client's pool for receiving responses
to ioctl(KDBUS_CMD_GET_CONN_INFO), which are small.

Change-Id: I183a91196fead179a9fba22fa6418680305d3558
dbus/dbus-transport-kdbus.c
dbus/kdbus-common.c
dbus/kdbus-common.h