aboutsummaryrefslogtreecommitdiffstats
path: root/method-x-randr.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-07 22:51:21 +0100
committerMattias Andrée <maandree@kth.se>2021-03-07 22:51:21 +0100
commitbaa6a1cf7979c095c1081daa2a2d1134c76d2f1b (patch)
treed0525238a334091eb4d241b0b83da1a4a1793d5b /method-x-randr.h
parentStart replacing info manual with man pages (diff)
downloadlibgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.gz
libgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.bz2
libgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.xz
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'method-x-randr.h')
-rw-r--r--method-x-randr.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/method-x-randr.h b/method-x-randr.h
index 047498b..e331912 100644
--- a/method-x-randr.h
+++ b/method-x-randr.h
@@ -20,7 +20,7 @@
/**
* Data structure for partition data
*/
-typedef struct libgamma_x_randr_partition_data {
+struct libgamma_x_randr_partition_data {
/**
* Mapping from CRTC indices to CRTC identifiers
*/
@@ -48,8 +48,7 @@ typedef struct libgamma_x_randr_partition_data {
* Screen configuration timestamp
*/
xcb_timestamp_t config_timestamp;
-
-} libgamma_x_randr_partition_data_t;
+};
#endif
@@ -60,7 +59,7 @@ typedef struct libgamma_x_randr_partition_data {
* @param this The data structure to fill with the method's capabilities
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__)))
-void libgamma_x_randr_method_capabilities(libgamma_method_capabilities_t *restrict);
+void libgamma_x_randr_method_capabilities(struct libgamma_method_capabilities *restrict);
/**
* Initialise an allocated site state
@@ -76,7 +75,7 @@ void libgamma_x_randr_method_capabilities(libgamma_method_capabilities_t *restri
* error identifier provided by this library
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__(1), __warn_unused_result__)))
-int libgamma_x_randr_site_initialise(libgamma_site_state_t *restrict, char *restrict);
+int libgamma_x_randr_site_initialise(struct libgamma_site_state *restrict, char *restrict);
/**
* Release all resources held by a site state.
@@ -84,7 +83,7 @@ int libgamma_x_randr_site_initialise(libgamma_site_state_t *restrict, char *rest
* @param this The site state.
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__)))
-void libgamma_x_randr_site_destroy(libgamma_site_state_t *restrict);
+void libgamma_x_randr_site_destroy(struct libgamma_site_state *restrict);
/**
* Restore the gamma ramps all CRTC:s with a site to the system settings
@@ -94,7 +93,7 @@ void libgamma_x_randr_site_destroy(libgamma_site_state_t *restrict);
* error identifier provided by this library
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__)))
-int libgamma_x_randr_site_restore(libgamma_site_state_t *restrict);
+int libgamma_x_randr_site_restore(struct libgamma_site_state *restrict);
/**
@@ -107,7 +106,7 @@ int libgamma_x_randr_site_restore(libgamma_site_state_t *restrict);
* error identifier provided by this library
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__)))
-int libgamma_x_randr_partition_initialise(libgamma_partition_state_t *restrict, libgamma_site_state_t *restrict, size_t);
+int libgamma_x_randr_partition_initialise(struct libgamma_partition_state *restrict, struct libgamma_site_state *restrict, size_t);
/**
* Release all resources held by a partition state
@@ -115,7 +114,7 @@ int libgamma_x_randr_partition_initialise(libgamma_partition_state_t *restrict,
* @param this The partition state
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__)))
-void libgamma_x_randr_partition_destroy(libgamma_partition_state_t *restrict);
+void libgamma_x_randr_partition_destroy(struct libgamma_partition_state *restrict);
/**
* Restore the gamma ramps all CRTC:s with a partition to the system settings
@@ -125,7 +124,7 @@ void libgamma_x_randr_partition_destroy(libgamma_partition_state_t *restrict);
* error identifier provided by this library
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__)))
-int libgamma_x_randr_partition_restore(libgamma_partition_state_t *restrict);
+int libgamma_x_randr_partition_restore(struct libgamma_partition_state *restrict);
/**
@@ -138,7 +137,7 @@ int libgamma_x_randr_partition_restore(libgamma_partition_state_t *restrict);
* error identifier provided by this library
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__)))
-int libgamma_x_randr_crtc_initialise(libgamma_crtc_state_t *restrict, libgamma_partition_state_t *restrict, size_t);
+int libgamma_x_randr_crtc_initialise(struct libgamma_crtc_state *restrict, struct libgamma_partition_state *restrict, size_t);
/**
* Release all resources held by a CRTC state
@@ -146,7 +145,7 @@ int libgamma_x_randr_crtc_initialise(libgamma_crtc_state_t *restrict, libgamma_p
* @param this The CRTC state
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__)))
-void libgamma_x_randr_crtc_destroy(libgamma_crtc_state_t *restrict);
+void libgamma_x_randr_crtc_destroy(struct libgamma_crtc_state *restrict);
/**
* Restore the gamma ramps for a CRTC to the system settings for that CRTC
@@ -156,7 +155,7 @@ void libgamma_x_randr_crtc_destroy(libgamma_crtc_state_t *restrict);
* error identifier provided by this library
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__)))
-int libgamma_x_randr_crtc_restore(libgamma_crtc_state_t *restrict);
+int libgamma_x_randr_crtc_restore(struct libgamma_crtc_state *restrict);
/**
@@ -168,7 +167,8 @@ int libgamma_x_randr_crtc_restore(libgamma_crtc_state_t *restrict);
* @return Zero on success, -1 on error; on error refer to the error reports in `this`
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__)))
-int libgamma_x_randr_get_crtc_information(libgamma_crtc_information_t *restrict, libgamma_crtc_state_t *restrict, unsigned long long);
+int libgamma_x_randr_get_crtc_information(struct libgamma_crtc_information *restrict,
+ struct libgamma_crtc_state *restrict, unsigned long long);
/**
* Get the current gamma ramps for a CRTC, 16-bit gamma-depth version
@@ -179,7 +179,7 @@ int libgamma_x_randr_get_crtc_information(libgamma_crtc_information_t *restrict,
* error identifier provided by this library
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__)))
-int libgamma_x_randr_crtc_get_gamma_ramps16(libgamma_crtc_state_t *restrict, libgamma_gamma_ramps16_t *restrict);
+int libgamma_x_randr_crtc_get_gamma_ramps16(struct libgamma_crtc_state *restrict, struct libgamma_gamma_ramps16 *restrict);
/**
* Set the gamma ramps for a CRTC, 16-bit gamma-depth version
@@ -190,7 +190,7 @@ int libgamma_x_randr_crtc_get_gamma_ramps16(libgamma_crtc_state_t *restrict, lib
* error identifier provided by this library
*/
LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__)))
-int libgamma_x_randr_crtc_set_gamma_ramps16(libgamma_crtc_state_t *restrict, const libgamma_gamma_ramps16_t *restrict);
+int libgamma_x_randr_crtc_set_gamma_ramps16(struct libgamma_crtc_state *restrict, const struct libgamma_gamma_ramps16 *restrict);