From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH v5 2/6] dbus: add PermissionDenied DBus error
Date: Wed, 28 Aug 2024 12:24:24 -0700 [thread overview]
Message-ID: <20240828192428.902761-2-prestwoj@gmail.com> (raw)
In-Reply-To: <20240828192428.902761-1-prestwoj@gmail.com>
---
src/dbus.c | 6 ++++++
src/dbus.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/src/dbus.c b/src/dbus.c
index 32de1e1a..b3799b55 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -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)
{
diff --git a/src/dbus.h b/src/dbus.h
index 14814b5d..6d7074bf 100644
--- a/src/dbus.h
+++ b/src/dbus.h
@@ -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);
--
2.34.1
next prev parent reply other threads:[~2024-08-28 19:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-28 19:24 [PATCH v5 1/6] doc: Document station Affinities property James Prestwood
2024-08-28 19:24 ` James Prestwood [this message]
2024-08-28 19:24 ` [PATCH v5 3/6] station: add Affinities DBus property James Prestwood
2024-08-28 19:24 ` [PATCH v5 4/6] station: Use Affinities property to change roaming threshold James Prestwood
2024-08-28 19:24 ` [PATCH v5 5/6] auto-t: add affinities property for station, and extended_service_set James Prestwood
2024-08-28 19:24 ` [PATCH v5 6/6] auto-t: add tests for Affinities behavior James Prestwood
2024-09-03 15:25 ` [PATCH v5 1/6] doc: Document station Affinities property Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240828192428.902761-2-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox