3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-29 21:42:50 +01:00

dbus: Add not supported error

This commit is contained in:
Denis Kenzior 2015-02-24 23:19:16 -06:00
parent 41e82fba77
commit d77238d5fd
2 changed files with 7 additions and 0 deletions

View File

@ -120,6 +120,12 @@ struct l_dbus_message *dbus_error_not_found(struct l_dbus_message *msg)
"Object not found"); "Object not found");
} }
struct l_dbus_message *dbus_error_not_supported(struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".NotSupported",
"Operation not supported");
}
void dbus_pending_reply(struct l_dbus_message **msg, void dbus_pending_reply(struct l_dbus_message **msg,
struct l_dbus_message *reply) struct l_dbus_message *reply)
{ {

View File

@ -53,6 +53,7 @@ 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_args(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_already_exists(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_found(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_not_supported(struct l_dbus_message *msg);
bool dbus_init(bool enable_debug); bool dbus_init(bool enable_debug);
bool dbus_exit(void); bool dbus_exit(void);