mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 22:19:23 +01:00
dbus: Provide dbus_error aborted and not_available
This commit is contained in:
parent
190dbd335d
commit
7f56f561c6
12
src/dbus.c
12
src/dbus.c
@ -90,6 +90,18 @@ struct l_dbus_message *dbus_error_failed(struct l_dbus_message *msg)
|
||||
"Operation failed");
|
||||
}
|
||||
|
||||
struct l_dbus_message *dbus_error_aborted(struct l_dbus_message *msg)
|
||||
{
|
||||
return l_dbus_message_new_error(msg, IWD_SERVICE ".Aborted",
|
||||
"Operation aborted");
|
||||
}
|
||||
|
||||
struct l_dbus_message *dbus_error_not_available(struct l_dbus_message *msg)
|
||||
{
|
||||
return l_dbus_message_new_error(msg, IWD_SERVICE ".NotAvailable",
|
||||
"Operation not available");
|
||||
}
|
||||
|
||||
void dbus_pending_reply(struct l_dbus_message **msg,
|
||||
struct l_dbus_message *reply)
|
||||
{
|
||||
|
@ -47,6 +47,8 @@ void dbus_dict_append_bytearray(struct l_dbus_message_builder *builder,
|
||||
|
||||
struct l_dbus_message *dbus_error_busy(struct l_dbus_message *msg);
|
||||
struct l_dbus_message *dbus_error_failed(struct l_dbus_message *msg);
|
||||
struct l_dbus_message *dbus_error_aborted(struct l_dbus_message *msg);
|
||||
struct l_dbus_message *dbus_error_not_available(struct l_dbus_message *msg);
|
||||
|
||||
bool dbus_init(bool enable_debug);
|
||||
bool dbus_exit(void);
|
||||
|
Loading…
Reference in New Issue
Block a user