summaryrefslogtreecommitdiffstats
path: root/src/shared/varlink.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-04-05 15:53:55 +0200
committerLennart Poettering <lennart@poettering.net>2023-04-12 15:14:21 +0200
commita3861b4726cce668acf36d9dfcd23a2b03fc7255 (patch)
tree8a78e2e391c466d7c5a3586d78b8c9760e54fec5 /src/shared/varlink.h
parentFix compilation error (diff)
downloadsystemd-a3861b4726cce668acf36d9dfcd23a2b03fc7255.tar.xz
systemd-a3861b4726cce668acf36d9dfcd23a2b03fc7255.zip
varlink: add some comments explaining what by various errors are defined
Diffstat (limited to 'src/shared/varlink.h')
-rw-r--r--src/shared/varlink.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/varlink.h b/src/shared/varlink.h
index 9518cd9098..ea4e23ff9c 100644
--- a/src/shared/varlink.h
+++ b/src/shared/varlink.h
@@ -163,14 +163,18 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(Varlink *, varlink_close_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(Varlink *, varlink_flush_close_unref);
DEFINE_TRIVIAL_CLEANUP_FUNC(VarlinkServer *, varlink_server_unref);
+/* These are local errors that never cross the wire, and are our own invention */
#define VARLINK_ERROR_DISCONNECTED "io.systemd.Disconnected"
#define VARLINK_ERROR_TIMEOUT "io.systemd.TimedOut"
#define VARLINK_ERROR_PROTOCOL "io.systemd.Protocol"
#define VARLINK_ERROR_SYSTEM "io.systemd.System"
+/* These are errors defined in the Varlink spec */
#define VARLINK_ERROR_INTERFACE_NOT_FOUND "org.varlink.service.InterfaceNotFound"
#define VARLINK_ERROR_METHOD_NOT_FOUND "org.varlink.service.MethodNotFound"
#define VARLINK_ERROR_METHOD_NOT_IMPLEMENTED "org.varlink.service.MethodNotImplemented"
#define VARLINK_ERROR_INVALID_PARAMETER "org.varlink.service.InvalidParameter"
+
+/* These are errors we came up with and squatted the namespace with */
#define VARLINK_ERROR_SUBSCRIPTION_TAKEN "org.varlink.service.SubscriptionTaken"
#define VARLINK_ERROR_PERMISSION_DENIED "org.varlink.service.PermissionDenied"