dbus: Add error msg for the service set overlap

The intended usage of this error is to notify a client
application about the presence of the multiple overlapping
network sessions.
This commit is contained in:
Tim Kourt 2018-06-27 16:33:01 -07:00 committed by Denis Kenzior
parent 5446389d32
commit 48b7ed1e47
2 changed files with 9 additions and 0 deletions

View File

@ -172,6 +172,13 @@ struct l_dbus_message *dbus_error_not_implemented(struct l_dbus_message *msg)
"Not implemented");
}
struct l_dbus_message *dbus_error_service_set_overlap(
struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".ServiceSetOverlap",
"Service set overlap");
}
void dbus_pending_reply(struct l_dbus_message **msg,
struct l_dbus_message *reply)
{

View File

@ -66,6 +66,8 @@ 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);
struct l_dbus_message *dbus_error_service_set_overlap(
struct l_dbus_message *msg);
bool dbus_init(bool enable_debug);
bool dbus_exit(void);