aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsclient/inbound.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-04 13:46:57 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-04 13:46:57 +0200
commiteb716697c6e34f0dc75437f48ec0da8658be9503 (patch)
tree6efc0340d96bafd8f685d00ca6f58f530b78dc2e /src/libmdsclient/inbound.h
parentadd libmds_message (diff)
downloadmds-eb716697c6e34f0dc75437f48ec0da8658be9503.tar.gz
mds-eb716697c6e34f0dc75437f48ec0da8658be9503.tar.bz2
mds-eb716697c6e34f0dc75437f48ec0da8658be9503.tar.xz
m doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/libmdsclient/inbound.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/libmdsclient/inbound.h b/src/libmdsclient/inbound.h
index a127c3e..158ca10 100644
--- a/src/libmdsclient/inbound.h
+++ b/src/libmdsclient/inbound.h
@@ -91,8 +91,11 @@ typedef struct libmds_message
* @param this Memory slot in which to store the new message
* @return Non-zero on error, `errno` will be set accordingly.
* Destroy the message on error.
+ *
+ * @throws ENOMEM Out of memory. Possibly, the process hit the RLIMIT_AS or
+ * RLIMIT_DATA limit described in getrlimit(2).
*/
-__attribute__((nonnull))
+__attribute__((nonnull, warn_unused_result))
int libmds_message_initialise(libmds_message_t* restrict this);
/**
@@ -116,8 +119,12 @@ void libmds_message_destroy(libmds_message_t* restrict this);
* If -2 is returned `errno` will not have been set,
* -2 indicates that the message is malformated,
* which is a state that cannot be recovered from.
+ *
+ * @throws ENOMEM Out of memory. Possibly, the process hit the RLIMIT_AS or
+ * RLIMIT_DATA limit described in getrlimit(2).
+ * @throws Any error specified for recv(3)
*/
-__attribute__((nonnull))
+__attribute__((nonnull, warn_unused_result))
int libmds_message_read(libmds_message_t* restrict this, int fd);