Add boxed GType for GThread

https://bugzilla.gnome.org/show_bug.cgi?id=688704
This commit is contained in:
Sebastian Dröge 2012-11-20 08:58:30 +01:00
parent ca8062a389
commit 46a92a760b
4 changed files with 15 additions and 0 deletions

View File

@ -374,6 +374,7 @@ G_TYPE_MAIN_CONTEXT
G_TYPE_MAIN_LOOP
G_TYPE_SOURCE
G_TYPE_POLLFD
G_TYPE_THREAD
GStrv
<SUBSECTION Standard>

View File

@ -161,6 +161,8 @@ G_DEFINE_BOXED_TYPE (GMainContext, g_main_context, g_main_context_ref, g_main_co
G_DEFINE_BOXED_TYPE (GSource, g_source, g_source_ref, g_source_unref)
G_DEFINE_BOXED_TYPE (GPollFD, g_pollfd, pollfd_copy, g_free)
G_DEFINE_BOXED_TYPE (GThread, g_thread, g_thread_ref, g_thread_unref)
/* This one can't use G_DEFINE_BOXED_TYPE (GStrv, g_strv, g_strdupv, g_strfreev) */
GType
g_strv_get_type (void)

View File

@ -245,6 +245,15 @@ typedef gsize GType;
*/
#define G_TYPE_KEY_FILE (g_key_file_get_type ())
/**
* G_TYPE_THREAD:
*
* The #GType for a boxed type holding a #GThread.
*
* Since: 2.36
*/
#define G_TYPE_THREAD (g_thread_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;
@ -272,6 +281,8 @@ GLIB_AVAILABLE_IN_2_30
GType g_source_get_type (void) G_GNUC_CONST;
GLIB_AVAILABLE_IN_2_36
GType g_pollfd_get_type (void) G_GNUC_CONST;
GLIB_AVAILABLE_IN_2_36
GType g_thread_get_type (void) G_GNUC_CONST;
GLIB_DEPRECATED_FOR('G_TYPE_VARIANT')
GType g_variant_get_gtype (void) G_GNUC_CONST;

View File

@ -35,6 +35,7 @@ g_main_context_get_type
g_source_get_type
g_pollfd_get_type
g_closure_get_type
g_thread_get_type
g_value_get_type
g_value_array_get_type
g_value_set_boxed