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

dbus: add AlreadyProvisioned and NotHidden errors

This commit is contained in:
Tim Kourt 2018-06-28 21:02:55 -07:00 committed by Denis Kenzior
parent b132e36978
commit d91b81bc11
2 changed files with 16 additions and 0 deletions

View File

@ -179,6 +179,19 @@ struct l_dbus_message *dbus_error_service_set_overlap(
"Service set overlap"); "Service set overlap");
} }
struct l_dbus_message *dbus_error_already_provisioned(
struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".AlreadyProvisioned",
"Already provisioned");
}
struct l_dbus_message *dbus_error_not_hidden(struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".NotHidden",
"Not hidden");
}
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

@ -68,6 +68,9 @@ struct l_dbus_message *dbus_error_not_configured(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_not_implemented(struct l_dbus_message *msg); struct l_dbus_message *dbus_error_not_implemented(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_service_set_overlap( struct l_dbus_message *dbus_error_service_set_overlap(
struct l_dbus_message *msg); struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_already_provisioned(
struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_not_hidden(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);