clutter/main: Move struct where it is used

The struct & functions are no longer used elsewhere, so move them from
the header file

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3573>
This commit is contained in:
Bilal Elmoussaoui 2024-02-09 14:22:07 +01:00
parent 263423d38e
commit 40ba60b52b
2 changed files with 9 additions and 13 deletions

View File

@ -47,6 +47,13 @@
#include "cally/cally.h" /* For accessibility support */
typedef struct
{
GSourceFunc func;
gpointer data;
GDestroyNotify notify;
} ClutterThreadsDispatch;
/* main context */
static ClutterContext *ClutterCntx = NULL;
@ -108,7 +115,7 @@ clutter_disable_accessibility (void)
clutter_enable_accessibility = FALSE;
}
gboolean
static gboolean
_clutter_threads_dispatch (gpointer data)
{
ClutterThreadsDispatch *dispatch = data;
@ -120,7 +127,7 @@ _clutter_threads_dispatch (gpointer data)
return ret;
}
void
static void
_clutter_threads_dispatch_free (gpointer data)
{
ClutterThreadsDispatch *dispatch = data;

View File

@ -98,17 +98,6 @@ typedef enum
CLUTTER_IN_MAP_UNMAP = 1 << 8,
} ClutterPrivateFlags;
/* shared between clutter-main.c and clutter-frame-source.c */
typedef struct
{
GSourceFunc func;
gpointer data;
GDestroyNotify notify;
} ClutterThreadsDispatch;
gboolean _clutter_threads_dispatch (gpointer data);
void _clutter_threads_dispatch_free (gpointer data);
ClutterContext * _clutter_context_get_default (void);
CLUTTER_EXPORT