dbus: Add NotConfigured dbus exception

This commit is contained in:
Tim Kourt 2017-10-26 13:25:59 -07:00 committed by Denis Kenzior
parent 3012623c76
commit 3b6d7e94f8
2 changed files with 7 additions and 0 deletions

View File

@ -160,6 +160,12 @@ struct l_dbus_message *dbus_error_not_connected(struct l_dbus_message *msg)
"Not connected");
}
struct l_dbus_message *dbus_error_not_configured(struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".NotConfigured",
"Not configured");
}
struct l_dbus_message *dbus_error_not_implemented(struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".NotImplemented",

View File

@ -64,6 +64,7 @@ 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);
struct l_dbus_message *dbus_error_no_agent(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_not_connected(struct l_dbus_message *msg);
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);
bool dbus_init(bool enable_debug);