mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
dbus: Add dbus_pending_reply
This commit is contained in:
parent
051f49ea85
commit
4639c31d61
10
src/dbus.c
10
src/dbus.c
@ -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)
|
||||
{
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user