From 3f0487d310974f6ff889ca80e4fb4005553814ed Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 30 May 2023 12:59:41 +0200 Subject: backend/drm: move forward decl up for drmModeModeInfo This allows doc generators to properly associate the doc comment with the function instead of the typedef. --- include/wlr/backend/drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wlr/backend/drm.h b/include/wlr/backend/drm.h index 1617aa15..414d90c0 100644 --- a/include/wlr/backend/drm.h +++ b/include/wlr/backend/drm.h @@ -15,6 +15,7 @@ #include struct wlr_drm_backend; +typedef struct _drmModeModeInfo drmModeModeInfo; struct wlr_drm_lease { int fd; @@ -74,7 +75,6 @@ void wlr_drm_lease_terminate(struct wlr_drm_lease *lease); /** * Add mode to the list of available modes. */ -typedef struct _drmModeModeInfo drmModeModeInfo; struct wlr_output_mode *wlr_drm_connector_add_mode(struct wlr_output *output, const drmModeModeInfo *mode); -- cgit v1.2.3