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

dbus: Provide dbus_error aborted and not_available

This commit is contained in:
Ravi kumar Veeramally 2015-02-14 00:12:05 +02:00 committed by Denis Kenzior
parent 190dbd335d
commit 7f56f561c6
2 changed files with 14 additions and 0 deletions

View File

@ -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)
{

View File

@ -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);