diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-25 09:00:06 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-25 09:00:06 +0200 |
commit | 527c082c88390fde29f555fe3720e0d55d9edc34 (patch) | |
tree | 141242290d3cfc1fc6fe280ebd4e77477943a4f7 /src/mds-server/multicast.h | |
parent | m + attributes (diff) | |
download | mds-527c082c88390fde29f555fe3720e0d55d9edc34.tar.gz mds-527c082c88390fde29f555fe3720e0d55d9edc34.tar.bz2 mds-527c082c88390fde29f555fe3720e0d55d9edc34.tar.xz |
attributes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-server/multicast.h')
-rw-r--r-- | src/mds-server/multicast.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mds-server/multicast.h b/src/mds-server/multicast.h index a0add4d..bb83687 100644 --- a/src/mds-server/multicast.h +++ b/src/mds-server/multicast.h @@ -72,6 +72,7 @@ typedef struct multicast * * @param this The message multicast state */ +__attribute__((nonnull)) void multicast_initialise(multicast_t* restrict this); /** @@ -79,6 +80,7 @@ void multicast_initialise(multicast_t* restrict this); * * @param this The message multicast state */ +__attribute__((nonnull)) void multicast_destroy(multicast_t* restrict this); /** @@ -87,7 +89,8 @@ void multicast_destroy(multicast_t* restrict this); * @param this The client information * @return The number of bytes to allocate to the output buffer */ -size_t multicast_marshal_size(const multicast_t* restrict this) __attribute__((pure)); +__attribute__((pure, nonnull)) +size_t multicast_marshal_size(const multicast_t* restrict this); /** * Marshals a message multicast state @@ -96,6 +99,7 @@ size_t multicast_marshal_size(const multicast_t* restrict this) __attribute__((p * @param data Output buffer for the marshalled data * @return The number of bytes that have been written (everything will be written) */ +__attribute__((nonnull)) size_t multicast_marshal(const multicast_t* restrict this, char* restrict data); /** @@ -106,6 +110,7 @@ size_t multicast_marshal(const multicast_t* restrict this, char* restrict data); * @return Zero on error, `errno` will be set accordingly, otherwise the * number of read bytes. Destroy the message multicast state on error. */ +__attribute__((nonnull)) size_t multicast_unmarshal(multicast_t* restrict this, char* restrict data); /** @@ -114,7 +119,8 @@ size_t multicast_unmarshal(multicast_t* restrict this, char* restrict data); * @param data In buffer with the marshalled data * @return The number of read bytes */ -size_t multicast_unmarshal_skip(char* restrict data) __attribute__((pure)); +__attribute__((pure, nonnull)) +size_t multicast_unmarshal_skip(char* restrict data); |