From 32b1643e58eade439c648bf53620f19ba53c7f40 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 28 May 2014 05:07:43 +0200 Subject: add LIBGAMMA_CONNECTOR_TYPE_COUNT, LIBGAMMA_SUBPIXEL_ORDER_COUNT and LIBGAMMA_CRTC_INFO_COUNT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- info/libgamma.texinfo | 5 +++++ src/libgamma-method.h | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/info/libgamma.texinfo b/info/libgamma.texinfo index 6322e73..1869145 100644 --- a/info/libgamma.texinfo +++ b/info/libgamma.texinfo @@ -439,6 +439,11 @@ provide display server abstract, it optionally lets you choose any available method you want despite of what display server you are used. +You may also want to add checks for update to +@code{LIBGAMMA_CONNECTOR_TYPE_COUNT}, +@code{LIBGAMMA_SUBPIXEL_ORDER_COUNT} and +@code{LIBGAMMA_CRTC_INFO_COUNT}. + @node GNU Free Documentation License diff --git a/src/libgamma-method.h b/src/libgamma-method.h index 0053491..901cfe0 100644 --- a/src/libgamma-method.h +++ b/src/libgamma-method.h @@ -334,6 +334,11 @@ typedef enum libgamma_connector_type } libgamma_connector_type_t; +/** + * The number of values defined in `libgamma_connector_type_t`. + */ +#define LIBGAMMA_CONNECTOR_TYPE_COUNT = 19 + /** * Orders for subpixels. Currently the possible values are * very biased to LCD, Plasma and monochrome monitors. @@ -373,6 +378,11 @@ typedef enum libgamma_subpixel_order } libgamma_subpixel_order_t; +/** + * The number of values defined in `libgamma_subpixel_order_t`. + */ +#define LIBGAMMA_SUBPIXEL_ORDER_COUNT = 6 + /** * For a `libgamma_crtc_information_t` fill in the @@ -454,6 +464,11 @@ typedef enum libgamma_subpixel_order */ #define CRTC_INFO_GAMMA (1 << 12) +/** + * The number of `CRTC_INFO_*` values defined. + */ +#define LIBGAMMA_CRTC_INFO_COUNT = 13 + /** * Cathode ray tube controller information data structure. -- cgit v1.2.3-70-g09d2