diff options
author | Mattias Andrée <maandree@kth.se> | 2020-04-24 20:20:58 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-04-24 20:20:58 +0200 |
commit | be9b62a38dc8decc1cfbf9d3562519eddf2e8881 (patch) | |
tree | 18576936693a3de08da2619aca69636a069db625 | |
parent | m (diff) | |
download | libaxl-be9b62a38dc8decc1cfbf9d3562519eddf2e8881.tar.gz libaxl-be9b62a38dc8decc1cfbf9d3562519eddf2e8881.tar.bz2 libaxl-be9b62a38dc8decc1cfbf9d3562519eddf2e8881.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | libaxl.h | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -12,7 +12,7 @@ The goals of libaxl is: * Do not use aggregate returns (unlike XCB) -* Abstract away as little as reasonable possible (unlike XCB and libX11) +* Abstract away as little as reasonably possible (unlike XCB and libX11) * But do not require the user to know about the order of bits in bitmasks (unlike XCB) @@ -152,7 +152,7 @@ int libaxl_fileno(LIBAXL_CONNECTION *); /* TODO man */ * On failure, no error is returned, but the error * is always LIBAXL_ERROR_SYSTEM */ -_LIBAXL_GCC_ONLY(__attribute__((__nonnull__, __warn_unused_result__))) +_LIBAXL_GCC_ONLY(__attribute__((__nonnull__, __warn_unused_result__, __const__))) const struct libaxl_display_info *libaxl_info(LIBAXL_CONNECTION *, int); /* TODO man */ /** @@ -171,6 +171,7 @@ const struct libaxl_display_info *libaxl_info(LIBAXL_CONNECTION *, int); /* TODO * @param depth The element before the element to return * @return The element after `depth` */ +_LIBAXL_GCC_ONLY(__attribute__((__warn_unused_result__, __pure__, __nonnull__, __returns_nonnull__))) inline const struct libaxl_depth * libaxl_next_depth(const struct libaxl_depth *depth) /* TODO man */ { @@ -192,6 +193,7 @@ libaxl_next_depth(const struct libaxl_depth *depth) /* TODO man */ * @param screen The element before the element to return * @return The element after `screen` */ +_LIBAXL_GCC_ONLY(__attribute__((__warn_unused_result__, __pure__, __nonnull__, __returns_nonnull__))) inline const struct libaxl_screen * libaxl_next_screen(const struct libaxl_screen *screen) /* TODO man */ { |