From b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b Mon Sep 17 00:00:00 2001 From: Mattias Andrée <maandree@kth.se> Date: Thu, 11 Jun 2020 20:14:09 +0200 Subject: Misc, mainly connect stuff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée <maandree@kth.se> --- libaxl.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libaxl.h') diff --git a/libaxl.h b/libaxl.h index fd0c9c1..40b0df3 100644 --- a/libaxl.h +++ b/libaxl.h @@ -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 -- cgit v1.2.3-70-g09d2