From 4afe3afdf0e10cf04c797e417149cc9514f89f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 19 Jan 2021 19:26:14 +0100 Subject: [PATCH] kms/impl-device/simple: Make process update vfunc type a typedef It made the function type declaration a bit unreadable, so split it out. Part-of: --- .../native/meta-kms-impl-device-simple.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/backends/native/meta-kms-impl-device-simple.c b/src/backends/native/meta-kms-impl-device-simple.c index e435e2776..d83b504ee 100644 --- a/src/backends/native/meta-kms-impl-device-simple.c +++ b/src/backends/native/meta-kms-impl-device-simple.c @@ -31,6 +31,11 @@ #include "backends/native/meta-kms-update-private.h" #include "backends/native/meta-kms-utils.h" +typedef gboolean (* MetaKmsSimpleProcessFunc) (MetaKmsImplDevice *impl_device, + MetaKmsUpdate *update, + gpointer entry_data, + GError **error); + typedef struct _CachedModeSet { GList *connectors; @@ -1135,14 +1140,11 @@ err: } static gboolean -process_entries (MetaKmsImplDevice *impl_device, - MetaKmsUpdate *update, - GList *entries, - gboolean (* func) (MetaKmsImplDevice *impl_device, - MetaKmsUpdate *update, - gpointer entry_data, - GError **error), - GError **error) +process_entries (MetaKmsImplDevice *impl_device, + MetaKmsUpdate *update, + GList *entries, + MetaKmsSimpleProcessFunc func, + GError **error) { GList *l;