aboutsummaryrefslogtreecommitdiffstats
path: root/libsbus.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-22 02:06:03 +0200
committerMattias Andrée <maandree@kth.se>2017-10-22 02:06:03 +0200
commitddc2d09588f366218d48730f5eaa359ec492b44c (patch)
tree3e2363ab2c468725a32475166f52034c6c3d08a0 /libsbus.h
parentUpdate readme (diff)
downloadsbus-ddc2d09588f366218d48730f5eaa359ec492b44c.tar.gz
sbus-ddc2d09588f366218d48730f5eaa359ec492b44c.tar.bz2
sbus-ddc2d09588f366218d48730f5eaa359ec492b44c.tar.xz
Add support for secret messages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libsbus.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsbus.h b/libsbus.h
index 006b0e2..6ac4eed 100644
--- a/libsbus.h
+++ b/libsbus.h
@@ -8,7 +8,8 @@
enum libsbus_packet_type {
LIBSBUS_UNKNOWN,
- LIBSBUS_MESSAGE
+ LIBSBUS_MESSAGE,
+ LIBSBUS_CONTROL_MESSAGE
};
struct libsbus_unknown {
@@ -32,6 +33,7 @@ union libsbus_packet {
int libsbus_subscribe(int fd, const char *pattern, int flags, char *buf);
int libsbus_unsubscribe(int fd, const char *pattern, int flags, char *buf);
int libsbus_publish(int fd, const char *key, const char *msg, size_t n, int flags, char *buf);
+int libsbus_send_cmsg(int fd, const char *key, const char *msg, size_t n, int flags, char *buf);
ssize_t libsbuf_prepare_message(const char *key, char *buf, size_t *remaining);
int libsbus_receive(int fd, int flags, char *buf, union libsbus_packet *packet);