diff options
Diffstat (limited to '')
-rw-r--r-- | method-linux-drm.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/method-linux-drm.h b/method-linux-drm.h index 1e8de08..9e98412 100644 --- a/method-linux-drm.h +++ b/method-linux-drm.h @@ -7,7 +7,7 @@ /** * Graphics card data for the Direct Rendering Manager adjustment method */ -typedef struct libgamma_drm_card_data { +struct libgamma_drm_card_data { /** * File descriptor for the connection to the graphics card */ @@ -27,8 +27,7 @@ typedef struct libgamma_drm_card_data { * Resources for open encoders */ drmModeEncoder **encoders; - -} libgamma_drm_card_data_t; +}; #endif @@ -39,7 +38,7 @@ typedef struct libgamma_drm_card_data { * @param this The data structure to fill with the method's capabilities */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__))) -void libgamma_linux_drm_method_capabilities(libgamma_method_capabilities_t *restrict); +void libgamma_linux_drm_method_capabilities(struct libgamma_method_capabilities *restrict); /** * Initialise an allocated site state @@ -55,7 +54,7 @@ void libgamma_linux_drm_method_capabilities(libgamma_method_capabilities_t *rest * error identifier provided by this library */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__(1), __warn_unused_result__))) -int libgamma_linux_drm_site_initialise(libgamma_site_state_t *restrict, char *restrict); +int libgamma_linux_drm_site_initialise(struct libgamma_site_state *restrict, char *restrict); /** * Release all resources held by a site state @@ -63,7 +62,7 @@ int libgamma_linux_drm_site_initialise(libgamma_site_state_t *restrict, char *re * @param this The site state */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__))) -void libgamma_linux_drm_site_destroy(libgamma_site_state_t *restrict); +void libgamma_linux_drm_site_destroy(struct libgamma_site_state *restrict); /** * Restore the gamma ramps all CRTC:s with a site to the system settings @@ -73,7 +72,7 @@ void libgamma_linux_drm_site_destroy(libgamma_site_state_t *restrict); * error identifier provided by this library */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__))) -int libgamma_linux_drm_site_restore(libgamma_site_state_t *restrict); +int libgamma_linux_drm_site_restore(struct libgamma_site_state *restrict); /** @@ -86,7 +85,7 @@ int libgamma_linux_drm_site_restore(libgamma_site_state_t *restrict); * error identifier provided by this library */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__))) -int libgamma_linux_drm_partition_initialise(libgamma_partition_state_t *restrict, libgamma_site_state_t *restrict, size_t); +int libgamma_linux_drm_partition_initialise(struct libgamma_partition_state *restrict, struct libgamma_site_state *restrict, size_t); /** * Release all resources held by a partition state @@ -94,7 +93,7 @@ int libgamma_linux_drm_partition_initialise(libgamma_partition_state_t *restrict * @param this The partition state */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__))) -void libgamma_linux_drm_partition_destroy(libgamma_partition_state_t *restrict); +void libgamma_linux_drm_partition_destroy(struct libgamma_partition_state *restrict); /** * Restore the gamma ramps all CRTC:s with a partition to the system settings @@ -104,7 +103,7 @@ void libgamma_linux_drm_partition_destroy(libgamma_partition_state_t *restrict); * error identifier provided by this library */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__))) -int libgamma_linux_drm_partition_restore(libgamma_partition_state_t *restrict); +int libgamma_linux_drm_partition_restore(struct libgamma_partition_state *restrict); /** @@ -117,7 +116,7 @@ int libgamma_linux_drm_partition_restore(libgamma_partition_state_t *restrict); * error identifier provided by this library */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__))) -int libgamma_linux_drm_crtc_initialise(libgamma_crtc_state_t *restrict, libgamma_partition_state_t *restrict, size_t); +int libgamma_linux_drm_crtc_initialise(struct libgamma_crtc_state *restrict, struct libgamma_partition_state *restrict, size_t); /** * Release all resources held by a CRTC state @@ -125,7 +124,7 @@ int libgamma_linux_drm_crtc_initialise(libgamma_crtc_state_t *restrict, libgamma * @param this The CRTC state */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__))) -void libgamma_linux_drm_crtc_destroy(libgamma_crtc_state_t *restrict); +void libgamma_linux_drm_crtc_destroy(struct libgamma_crtc_state *restrict); /** * Restore the gamma ramps for a CRTC to the system settings for that CRTC @@ -135,7 +134,7 @@ void libgamma_linux_drm_crtc_destroy(libgamma_crtc_state_t *restrict); * error identifier provided by this library */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__))) -int libgamma_linux_drm_crtc_restore(libgamma_crtc_state_t *restrict); +int libgamma_linux_drm_crtc_restore(struct libgamma_crtc_state *restrict); /** @@ -147,8 +146,8 @@ int libgamma_linux_drm_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_linux_drm_get_crtc_information(libgamma_crtc_information_t *restrict, - libgamma_crtc_state_t *restrict, unsigned long long); +int libgamma_linux_drm_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 @@ -159,7 +158,7 @@ int libgamma_linux_drm_get_crtc_information(libgamma_crtc_information_t *restric * error identifier provided by this library */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__))) -int libgamma_linux_drm_crtc_get_gamma_ramps16(libgamma_crtc_state_t *restrict, libgamma_gamma_ramps16_t *restrict); +int libgamma_linux_drm_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 @@ -170,7 +169,7 @@ int libgamma_linux_drm_crtc_get_gamma_ramps16(libgamma_crtc_state_t *restrict, l * error identifier provided by this library */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__, __warn_unused_result__))) -int libgamma_linux_drm_crtc_set_gamma_ramps16(libgamma_crtc_state_t *restrict, const libgamma_gamma_ramps16_t *restrict); +int libgamma_linux_drm_crtc_set_gamma_ramps16(struct libgamma_crtc_state *restrict, const struct libgamma_gamma_ramps16 *restrict); @@ -181,5 +180,5 @@ int libgamma_linux_drm_crtc_set_gamma_ramps16(libgamma_crtc_state_t *restrict, c * @param this The graphics card data */ LIBGAMMA_GCC_ONLY__(__attribute__((__nonnull__))) -void libgamma_linux_drm_internal_release_connectors_and_encoders(libgamma_drm_card_data_t *restrict); +void libgamma_linux_drm_internal_release_connectors_and_encoders(struct libgamma_drm_card_data *restrict); #endif |