3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

dbus: Add dbus_error_failed

This commit is contained in:
Denis Kenzior 2014-10-27 23:42:59 -05:00
parent 96a139d15b
commit d2f61dd0cd
2 changed files with 7 additions and 0 deletions

View File

@ -65,6 +65,12 @@ struct l_dbus_message *dbus_error_busy(struct l_dbus_message *msg)
"Operation already in progress");
}
struct l_dbus_message *dbus_error_failed(struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".Failed",
"Operation failed");
}
void dbus_pending_reply(struct l_dbus_message **msg,
struct l_dbus_message *reply)
{

View File

@ -42,6 +42,7 @@ void dbus_dict_append_bool(struct l_dbus_message_builder *builder,
const char *key, bool boolval);
struct l_dbus_message *dbus_error_busy(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_failed(struct l_dbus_message *msg);
bool dbus_init(void);
bool dbus_exit(void);