kdbus.h: split in and out flags of ioctls (ABI break)
authorDaniel Mack <daniel@zonque.org>
Tue, 21 Oct 2014 17:07:14 +0000 (19:07 +0200)
committerDaniel Mack <daniel@zonque.org>
Tue, 21 Oct 2014 17:18:58 +0000 (19:18 +0200)
commit20e3a970d94afa83e9127106a4a0b757f1289da7
treefc8a9d4c30267e897a10d51cdd9d2f92647635c6
parent622372a53c2b08ba53425dddc55cdf66b71b5b05
kdbus.h: split in and out flags of ioctls (ABI break)

Instead of negotating kernel flags via the same field for input and
output, use two different bitfields for that, and call the returned
flags 'kernel_flags'.

The approach implemented before didn't turn out to work too well for
more complex userspace programs that retain the same ioctl buffers
for multiple calls, and which had to manually save and restore the
flags before.

While at it, rename conn_flags → flags in kdbus_cmd_hello to ease
the internal helper functions and unify the API a bit more.

Signed-off-by: Daniel Mack <daniel@zonque.org>
12 files changed:
connection.c
handle.c
kdbus.h
kdbus.txt
message.c
test/kdbus-util.c
test/test-connection.c
test/test-domain.c
test/test-free.c
tools/kdbus-monitor.c
util.c
util.h