mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
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:
parent
431e75fa36
commit
a960725b5d
@ -184,6 +184,11 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
* Since: 2.80
|
||||
*/
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline gboolean g_unix_pipe_open (GUnixPipe *self,
|
||||
int flags,
|
||||
GError **error);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline gboolean
|
||||
g_unix_pipe_open (GUnixPipe *self,
|
||||
int flags,
|
||||
@ -212,6 +217,10 @@ g_unix_pipe_open (GUnixPipe *self,
|
||||
* Since: 2.80
|
||||
*/
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline int g_unix_pipe_get (GUnixPipe *self,
|
||||
GUnixPipeEnd end);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline int
|
||||
g_unix_pipe_get (GUnixPipe *self,
|
||||
GUnixPipeEnd end)
|
||||
@ -241,6 +250,10 @@ g_unix_pipe_get (GUnixPipe *self,
|
||||
* Since: 2.80
|
||||
*/
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline int g_unix_pipe_steal (GUnixPipe *self,
|
||||
GUnixPipeEnd end);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline int
|
||||
g_unix_pipe_steal (GUnixPipe *self,
|
||||
GUnixPipeEnd end)
|
||||
@ -276,6 +289,11 @@ g_unix_pipe_steal (GUnixPipe *self,
|
||||
* Since: 2.80
|
||||
*/
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline gboolean g_unix_pipe_close (GUnixPipe *self,
|
||||
GUnixPipeEnd end,
|
||||
GError **error);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline gboolean
|
||||
g_unix_pipe_close (GUnixPipe *self,
|
||||
GUnixPipeEnd end,
|
||||
@ -304,6 +322,9 @@ g_unix_pipe_close (GUnixPipe *self,
|
||||
*
|
||||
* Since: 2.80
|
||||
*/
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline void g_unix_pipe_clear (GUnixPipe *self);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_80
|
||||
static inline void
|
||||
g_unix_pipe_clear (GUnixPipe *self)
|
||||
|
12
glib/gmain.h
12
glib/gmain.h
@ -634,6 +634,9 @@ typedef void GMainContextPusher GLIB_AVAILABLE_TYPE_IN_2_64;
|
||||
* Since: 2.64
|
||||
*/
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_64
|
||||
static inline GMainContextPusher *g_main_context_pusher_new (GMainContext *main_context);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_64
|
||||
static inline GMainContextPusher *
|
||||
g_main_context_pusher_new (GMainContext *main_context)
|
||||
@ -656,6 +659,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
* Since: 2.64
|
||||
*/
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_64
|
||||
static inline void g_main_context_pusher_free (GMainContextPusher *pusher);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_64
|
||||
static inline void
|
||||
g_main_context_pusher_free (GMainContextPusher *pusher)
|
||||
@ -899,6 +905,9 @@ void g_clear_handle_id (guint *tag_ptr,
|
||||
*
|
||||
* Since: 2.84
|
||||
*/
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_84
|
||||
static inline unsigned int g_steal_handle_id (unsigned int *handle_pointer);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_84
|
||||
static inline unsigned int
|
||||
g_steal_handle_id (unsigned int *handle_pointer)
|
||||
@ -975,6 +984,9 @@ void g_main_context_invoke (GMainContext *context,
|
||||
GSourceFunc function,
|
||||
gpointer data);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_70
|
||||
static inline int g_steal_fd (int *fd_ptr);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_70
|
||||
static inline int
|
||||
g_steal_fd (int *fd_ptr)
|
||||
|
@ -229,6 +229,9 @@ void g_aligned_free_sized (gpointer mem,
|
||||
*
|
||||
* Since: 2.44
|
||||
*/
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_44
|
||||
static inline gpointer g_steal_pointer (gpointer pp);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_44
|
||||
static inline gpointer
|
||||
g_steal_pointer (gpointer pp)
|
||||
|
@ -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,
|
||||
|
@ -476,6 +476,10 @@ gboolean g_ascii_string_to_unsigned (const gchar *str,
|
||||
* Since: 2.76
|
||||
*/
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
|
||||
static inline gboolean g_set_str (char **str_pointer,
|
||||
const char *new_str);
|
||||
|
||||
GLIB_AVAILABLE_STATIC_INLINE_IN_2_76
|
||||
static inline gboolean
|
||||
g_set_str (char **str_pointer,
|
||||
const char *new_str)
|
||||
|
Loading…
Reference in New Issue
Block a user