g_free (value);
}
-static GPollFD *
-pollfd_copy (GPollFD *src)
-{
- GPollFD *dest = g_new0 (GPollFD, 1);
- /* just a couple of integers */
- memcpy (dest, src, sizeof (GPollFD));
- return dest;
-}
-
void
_g_boxed_type_init (void)
{
G_DEFINE_BOXED_TYPE (GMainLoop, g_main_loop, g_main_loop_ref, g_main_loop_unref)
G_DEFINE_BOXED_TYPE (GMainContext, g_main_context, g_main_context_ref, g_main_context_unref)
G_DEFINE_BOXED_TYPE (GSource, g_source, g_source_ref, g_source_unref)
-G_DEFINE_BOXED_TYPE (GPollFD, g_pollfd, pollfd_copy, g_free)
/* This one can't use G_DEFINE_BOXED_TYPE (GStrv, g_strv, g_strdupv, g_strfreev) */
GType
#define G_TYPE_SOURCE (g_source_get_type ())
/**
- * G_TYPE_POLLFD:
- *
- * The #GType for a boxed type holding a #GPollFD.
- *
- * Since: 2.36
- */
-#define G_TYPE_POLLFD (g_pollfd_get_type ())
-
-/**
* G_TYPE_KEY_FILE:
*
* The #GType for a boxed type holding a #GKeyFile.
GType g_main_context_get_type (void) G_GNUC_CONST;
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_DEPRECATED_FOR('G_TYPE_VARIANT')
GType g_variant_get_gtype (void) G_GNUC_CONST;