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-utils.h"
typedef gboolean (* MetaKmsSimpleProcessFunc) (MetaKmsImplDevice *impl_device,
MetaKmsUpdate *update,
gpointer entry_data,
GError **error);
typedef struct _CachedModeSet
{
GList *connectors;
@ -1138,10 +1143,7 @@ static gboolean
process_entries (MetaKmsImplDevice *impl_device,
MetaKmsUpdate *update,
GList *entries,
gboolean (* func) (MetaKmsImplDevice *impl_device,
MetaKmsUpdate *update,
gpointer entry_data,
GError **error),
MetaKmsSimpleProcessFunc func,
GError **error)
{
GList *l;