3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-26 01:02:35 +01:00

dbus: Add dbus_pending_reply

This commit is contained in:
Denis Kenzior 2014-10-27 23:42:05 -05:00
parent 051f49ea85
commit 4639c31d61
2 changed files with 13 additions and 0 deletions

View File

@ -59,6 +59,16 @@ void dbus_dict_append_bool(struct l_dbus_message_builder *builder,
l_dbus_message_builder_leave_dict(builder);
}
void dbus_pending_reply(struct l_dbus_message **msg,
struct l_dbus_message *reply)
{
struct l_dbus *dbus = dbus_get_bus();
l_dbus_send(dbus, reply);
l_dbus_message_unref(*msg);
*msg = NULL;
}
static void request_name_callback(struct l_dbus_message *message,
void *user_data)
{

View File

@ -31,6 +31,9 @@ struct l_dbus;
struct l_dbus *dbus_get_bus(void);
void dbus_pending_reply(struct l_dbus_message **msg,
struct l_dbus_message *reply);
void dbus_dict_append_string(struct l_dbus_message_builder *builder,
const char *key, const char *strval);
void dbus_dict_append_bool(struct l_dbus_message_builder *builder,