[Patch] Moving FD passing into the header
Christian Dywan
christian at lanedo.com
Tue Jun 15 09:18:57 PDT 2010
Hejsan,
so I changed Unix FD to not be a basic type anymore, and it's not
anymore part of the message arguments. Instead you add and retrieve
them specifically, see
http://lists.freedesktop.org/archives/dbus/2010-April/012509.html
The API is this:
dbus_bool_t dbus_message_append_unix_fd (DBusMessage *message,
int fd);
dbus_bool_t dbus_message_contains_unix_fds (DBusMessage *message);
int dbus_message_get_n_unix_fds (DBusMessage *message);
int dbus_message_get_unix_fd (DBusMessage *message,
int index);
*Getting* duplicates the handle. It is an error to try to get more
descriptors than exist in the message.
I adjusted the two test cases accordingly to use the new API.
--
ciao,
Christian
More information about the dbus
mailing list