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

dbus: add PermissionDenied DBus error

This commit is contained in:
James Prestwood 2024-08-28 12:24:24 -07:00 committed by Denis Kenzior
parent 4c3cbdc8d3
commit b98bc30c23
2 changed files with 7 additions and 0 deletions

View File

@ -134,6 +134,12 @@ struct l_dbus_message *dbus_error_not_hidden(struct l_dbus_message *msg)
"Not hidden");
}
struct l_dbus_message *dbus_error_permission_denied(struct l_dbus_message *msg)
{
return l_dbus_message_new_error(msg, IWD_SERVICE ".PermissionDenied",
"Permission Denied");
}
struct l_dbus_message *dbus_error_from_errno(int err,
struct l_dbus_message *msg)
{

View File

@ -82,6 +82,7 @@ struct l_dbus_message *dbus_error_service_set_overlap(
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);
struct l_dbus_message *dbus_error_permission_denied(struct l_dbus_message *msg);
struct l_dbus_message *dbus_error_from_errno(int err,
struct l_dbus_message *msg);