mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 09:28:54 +02:00
Make GMainLoop, GMainContext and GSource boxed types
Also add some annotations for better usage of these types in bindings. https://bugzilla.gnome.org/show_bug.cgi?id=657725
This commit is contained in:
@@ -182,6 +182,33 @@ typedef gsize GType;
|
||||
*/
|
||||
#define G_TYPE_VARIANT_BUILDER (g_variant_builder_get_type ())
|
||||
|
||||
/**
|
||||
* G_TYPE_MAIN_LOOP:
|
||||
*
|
||||
* The #GType for a boxed type holding a #GMainLoop.
|
||||
*
|
||||
* Since: 2.30
|
||||
*/
|
||||
#define G_TYPE_MAIN_LOOP (g_main_loop_get_type ())
|
||||
|
||||
/**
|
||||
* G_TYPE_MAIN_CONTEXT:
|
||||
*
|
||||
* The #GType for a boxed type holding a #GMainContext.
|
||||
*
|
||||
* Since: 2.30
|
||||
*/
|
||||
#define G_TYPE_MAIN_CONTEXT (g_main_context_get_type ())
|
||||
|
||||
/**
|
||||
* G_TYPE_SOURCE:
|
||||
*
|
||||
* The #GType for a boxed type holding a #GSource.
|
||||
*
|
||||
* Since: 2.30
|
||||
*/
|
||||
#define G_TYPE_SOURCE (g_source_get_type ())
|
||||
|
||||
GType g_date_get_type (void) G_GNUC_CONST;
|
||||
GType g_strv_get_type (void) G_GNUC_CONST;
|
||||
GType g_gstring_get_type (void) G_GNUC_CONST;
|
||||
@@ -197,6 +224,9 @@ GType g_date_time_get_type (void) G_GNUC_CONST;
|
||||
GType g_io_channel_get_type (void) G_GNUC_CONST;
|
||||
GType g_io_condition_get_type (void) G_GNUC_CONST;
|
||||
GType g_variant_builder_get_type (void) G_GNUC_CONST;
|
||||
GType g_main_loop_get_type (void) G_GNUC_CONST;
|
||||
GType g_main_context_get_type (void) G_GNUC_CONST;
|
||||
GType g_source_get_type (void) G_GNUC_CONST;
|
||||
|
||||
#if !defined(G_DISABLE_DEPRECATED) || defined(__GI_SCANNER__)
|
||||
GType g_variant_get_gtype (void) G_GNUC_CONST;
|
||||
|
Reference in New Issue
Block a user