Merge branch 'th/glib-private-const' into 'main'

[th/glib-private-const] glib: return const pointer from glib__private__()

See merge request GNOME/glib!3859
This commit is contained in:
Philip Withnall 2024-01-29 15:39:39 +00:00
commit 5f345a2653
2 changed files with 3 additions and 3 deletions

View File

@ -36,10 +36,10 @@
* Do not call this function; it is used to share private
* API between glib, gobject, and gio.
*/
GLibPrivateVTable *
const GLibPrivateVTable *
glib__private__ (void)
{
static GLibPrivateVTable table = {
static const GLibPrivateVTable table = {
g_wakeup_new,
g_wakeup_free,
g_wakeup_get_pollfd,

View File

@ -295,7 +295,7 @@ typedef struct {
} GLibPrivateVTable;
GLIB_AVAILABLE_IN_ALL
GLibPrivateVTable *glib__private__ (void);
const GLibPrivateVTable *glib__private__ (void);
/* Please see following for the use of ".ACP" over ""
* on Windows, although both are accepted at compile-time