glib: Add declarations for public static inline methods

This is needed in order to expose them in the GIR, and hence for their
documentation to work.

See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4308#note_2236525

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall
2024-10-01 14:17:50 +01:00
parent 431e75fa36
commit a960725b5d
5 changed files with 44 additions and 0 deletions

View File

@@ -179,6 +179,10 @@ GLIB_AVAILABLE_IN_2_36
gboolean g_close (gint fd,
GError **error);
GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
static inline gboolean g_clear_fd (int *fd_ptr,
GError **error);
GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
static inline gboolean
g_clear_fd (int *fd_ptr,