diff options
author | Mattias Andrée <maandree@kth.se> | 2017-10-22 02:06:03 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-10-22 02:06:03 +0200 |
commit | ddc2d09588f366218d48730f5eaa359ec492b44c (patch) | |
tree | 3e2363ab2c468725a32475166f52034c6c3d08a0 /libsbus.h | |
parent | Update readme (diff) | |
download | sbus-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |