mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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:
parent
6bffeeed28
commit
4afe3afdf0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user