diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-11 20:14:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-11 20:14:09 +0200 |
commit | b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b (patch) | |
tree | aa502d70d9969c333ccf9e70d55fd6dea41623c2 /libaxl.h | |
parent | Fix error checking (diff) | |
download | libaxl-b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b.tar.gz libaxl-b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b.tar.bz2 libaxl-b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b.tar.xz |
Misc, mainly connect stuff
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libaxl.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -49,6 +49,7 @@ typedef struct libaxl_context LIBAXL_CONTEXT; /* TODO man */ #define LIBAXL_ERROR_INVALID_REPLY_OPCODE -11 #define LIBAXL_ERROR_INVALID_HANDSHAKE_RESPONSE -12 #define LIBAXL_ERROR_OUT_OF_RESOURCE_IDS -13 +#define LIBAXL_ERROR_PROTOCOL_NOT_SUPPORTED -14 union libaxl_input { /* TODO doc, man */ uint8_t type; @@ -57,14 +58,16 @@ union libaxl_input { /* TODO doc, man */ union libaxl_event event; /* otherwise (.type = event type) */ }; +_LIBAXL_GCC_ONLY(__attribute__((__malloc__, __warn_unused_result__))) +LIBAXL_CONNECTION *libaxl_connect(const char *restrict, char **restrict); /* TODO man doc */ + /** * Deallocation and close a connection * * @param conn The connection to the display server * @return 0 on success, -1 of there was an asynchronous error */ -_LIBAXL_GCC_ONLY(__attribute__((__nonnull__))) -int libaxl_close(LIBAXL_CONNECTION *); /* TODO man */ +int libaxl_close(LIBAXL_CONNECTION *); /** * Get the file description used for a connection to |