aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-11-09 18:57:51 +0100
committerMattias Andrée <maandree@kth.se>2017-11-09 18:57:51 +0100
commit128aa6bc212eb52d00d615a67e9a9e925dc32a23 (patch)
treececfd1af35526b952eec208b4c068ba7ec0ff521
parentAdd echo control (diff)
downloadsbus-128aa6bc212eb52d00d615a67e9a9e925dc32a23.tar.gz
sbus-128aa6bc212eb52d00d615a67e9a9e925dc32a23.tar.bz2
sbus-128aa6bc212eb52d00d615a67e9a9e925dc32a23.tar.xz
Add macros for control messages
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--libsbus.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libsbus.h b/libsbus.h
index cb078c8..e542ec2 100644
--- a/libsbus.h
+++ b/libsbus.h
@@ -6,6 +6,20 @@
#define LIBSBUS_BUFFER_SIZE 409600
+#define LIBSBUS_CMSG_WHOAMI "!/cred/whoami", NULL, 0
+#define LIBSBUS_CMSG_BLOCKING_SOFT_QUEUE "blocking/soft/queue", NULL, 0
+#define LIBSBUS_CMSG_BLOCKING_SOFT_DISCARD "blocking/soft/discard", NULL, 0
+#define LIBSBUS_CMSG_BLOCKING_SOFT_BLOCK "blocking/soft/block", NULL, 0
+#define LIBSBUS_CMSG_BLOCKING_SOFT_ERROR "blocking/soft/error", NULL, 0
+#define LIBSBUS_CMSG_BLOCKING_HARD_DISCARD "blocking/hard/discard", NULL, 0
+#define LIBSBUS_CMSG_BLOCKING_HARD_BLOCK "blocking/hard/block", NULL, 0
+#define LIBSBUS_CMSG_BLOCKING_HARD_ERROR "blocking/hard/error", NULL, 0
+#define LIBSBUS_CMSG_ORDER_QUEUE "order/queue", NULL, 0
+#define LIBSBUS_CMSG_ORDER_STACK "order/stack", NULL, 0
+#define LIBSBUS_CMSG_ORDER_RANDOM "order/random", NULL, 0
+#define LIBSBUS_CMSG_ECHO_OFF "echo/off", NULL, 0
+#define LIBSBUS_CMSG_ECHO_ON "echo/on", NULL, 0
+
enum libsbus_packet_type {
LIBSBUS_UNKNOWN,
LIBSBUS_MESSAGE,