[glib] gobject: Box GMappedFile
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gobject: Box GMappedFile
- Date: Fri, 15 Nov 2013 20:56:46 +0000 (UTC)
commit cfc8215fc1dc09acbfd4bb2c2b5ae5d66a4146d4
Author: Ray Strode <rstrode redhat com>
Date: Fri Nov 15 14:47:09 2013 -0500
gobject: Box GMappedFile
GMappedFile is current unintrospectable, because it's not a registered
box type. It already has reference counting functions, so there's
little reason not to box it.
This commit adds GMappedFile to the hoard of other boxes types handled
by gboxed.c
https://bugzilla.gnome.org/show_bug.cgi?id=712393
gobject/gboxed.c | 1 +
gobject/glib-types.h | 11 +++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gobject/gboxed.c b/gobject/gboxed.c
index 67d6351..37ce604 100644
--- a/gobject/gboxed.c
+++ b/gobject/gboxed.c
@@ -155,6 +155,7 @@ G_DEFINE_BOXED_TYPE (GError, g_error, g_error_copy, g_error_free)
G_DEFINE_BOXED_TYPE (GDateTime, g_date_time, g_date_time_ref, g_date_time_unref);
G_DEFINE_BOXED_TYPE (GTimeZone, g_time_zone, g_time_zone_ref, g_time_zone_unref);
G_DEFINE_BOXED_TYPE (GKeyFile, g_key_file, g_key_file_ref, g_key_file_unref)
+G_DEFINE_BOXED_TYPE (GMappedFile, g_mapped_file, g_mapped_file_ref, g_mapped_file_unref)
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)
diff --git a/gobject/glib-types.h b/gobject/glib-types.h
index 663d790..34d5d1a 100644
--- a/gobject/glib-types.h
+++ b/gobject/glib-types.h
@@ -255,6 +255,15 @@ typedef gsize GType;
#define G_TYPE_KEY_FILE (g_key_file_get_type ())
/**
+ * G_TYPE_MAPPED_FILE:
+ *
+ * The #GType for a boxed type holding a #GMappedFile.
+ *
+ * Since: 2.40
+ */
+#define G_TYPE_MAPPED_FILE (g_mapped_file_get_type ())
+
+/**
* G_TYPE_THREAD:
*
* The #GType for a boxed type holding a #GThread.
@@ -322,6 +331,8 @@ GLIB_AVAILABLE_IN_2_36
GType g_checksum_get_type (void) G_GNUC_CONST;
GLIB_AVAILABLE_IN_2_36
GType g_markup_parse_context_get_type (void) G_GNUC_CONST;
+GLIB_AVAILABLE_IN_2_40
+GType g_mapped_file_get_type (void) G_GNUC_CONST;
GLIB_DEPRECATED_FOR('G_TYPE_VARIANT')
GType g_variant_get_gtype (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]