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

dbus: Add InvalidFormat error

This commit is contained in:
Denis Kenzior 2017-02-21 15:46:26 -06:00
parent d3030acbec
commit 854bb11c79
2 changed files with 7 additions and 0 deletions

View File

@ -123,6 +123,12 @@ struct l_dbus_message *dbus_error_invalid_args(struct l_dbus_message *msg)
"Argument type is wrong");
}
struct l_dbus_message *dbus_error_invalid_format(struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".InvalidFormat",
"Argument format is invalid");
}
struct l_dbus_message *dbus_error_already_exists(struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".AlreadyExists",

View File

@ -57,6 +57,7 @@ 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);
struct l_dbus_message *dbus_error_invalid_args(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_invalid_format(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_already_exists(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_not_found(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_not_supported(struct l_dbus_message *msg);