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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2021-01-19 19:26:14 +01:00 committed by Marge Bot
parent 6bffeeed28
commit 4afe3afdf0

View File

@ -31,6 +31,11 @@
#include "backends/native/meta-kms-update-private.h" #include "backends/native/meta-kms-update-private.h"
#include "backends/native/meta-kms-utils.h" #include "backends/native/meta-kms-utils.h"
typedef gboolean (* MetaKmsSimpleProcessFunc) (MetaKmsImplDevice *impl_device,
MetaKmsUpdate *update,
gpointer entry_data,
GError **error);
typedef struct _CachedModeSet typedef struct _CachedModeSet
{ {
GList *connectors; GList *connectors;
@ -1135,14 +1140,11 @@ err:
} }
static gboolean static gboolean
process_entries (MetaKmsImplDevice *impl_device, process_entries (MetaKmsImplDevice *impl_device,
MetaKmsUpdate *update, MetaKmsUpdate *update,
GList *entries, GList *entries,
gboolean (* func) (MetaKmsImplDevice *impl_device, MetaKmsSimpleProcessFunc func,
MetaKmsUpdate *update, GError **error)
gpointer entry_data,
GError **error),
GError **error)
{ {
GList *l; GList *l;