mirror of
https://github.com/brl/mutter.git
synced 2025-03-29 14:43:47 +00: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-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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user