summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-04-11 14:02:59 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-04-11 14:02:59 +0200
commitcfcc0059bfb8be7d1da80cb6a75d9ba71f4662f7 (patch)
tree5601f3ea6dfddc468dfbfddcff529a3c9b554b4e /src/systemd
parentf0ae945ecc4631c538b845d807a60c5b72903a5b (diff)
downloadsystemd-cfcc0059bfb8be7d1da80cb6a75d9ba71f4662f7.tar.gz
sd-bus: add define for the maximum signature length
Less magic numbers in the code…
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-bus.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h
index 129cc93328..311602d048 100644
--- a/src/systemd/sd-bus.h
+++ b/src/systemd/sd-bus.h
@@ -33,6 +33,9 @@ _SD_BEGIN_DECLARATIONS;
#define SD_BUS_DEFAULT_USER ((sd_bus *) 2)
#define SD_BUS_DEFAULT_SYSTEM ((sd_bus *) 3)
+/* https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-marshaling-signature */
+#define SD_BUS_MAXIMUM_SIGNATURE_LENGTH 255
+
/* Types */
typedef struct sd_bus sd_bus;