diff options
author | Mattias Andrée <maandree@kth.se> | 2020-05-10 21:43:05 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-05-10 21:43:05 +0200 |
commit | ba70c37a98850312973b737689d0394a03b34e7d (patch) | |
tree | 5e84f54662c8ba09157064482176f0cfca7d7de7 | |
parent | Documentation + return -1 screen when not specified (diff) | |
download | libaxl-ba70c37a98850312973b737689d0394a03b34e7d.tar.gz libaxl-ba70c37a98850312973b737689d0394a03b34e7d.tar.bz2 libaxl-ba70c37a98850312973b737689d0394a03b34e7d.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | libaxl.h | 6 | ||||
-rw-r--r-- | libaxl/display-info.h | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -112,6 +112,9 @@ const struct libaxl_display_info *libaxl_info(LIBAXL_CONNECTION *, int); /* TODO * ... do something with `depth` or `break` if `i` is of a desired value (index) ... * } * + * Note, the function does not check if another + * element exists + * * @param depth The element before the element to return * @return The element after `depth` */ @@ -134,6 +137,9 @@ libaxl_next_depth(const struct libaxl_depth *depth) /* TODO man */ * ... do something with `screen` or `break` if `i` is of a desired value (index) ... * } * + * Note, the function does not check if another + * element exists + * * @param screen The element before the element to return * @return The element after `screen` */ diff --git a/libaxl/display-info.h b/libaxl/display-info.h index 714e833..66a39d5 100644 --- a/libaxl/display-info.h +++ b/libaxl/display-info.h @@ -301,10 +301,10 @@ struct libaxl_display_info { /** * List of all screens in the display */ - const struct libaxl_format *screens; + const struct libaxl_screen *screens; /** * The default screen */ - const struct libaxl_format *default_screen; + const struct libaxl_screen *default_screen; }; |