mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
dbus: Add dbus_error_failed
This commit is contained in:
parent
96a139d15b
commit
d2f61dd0cd
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user