Turn GKeyFile into a boxed for introspection
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 15 Oct 2011 21:51:25 +0000 (17:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 15 Oct 2011 21:51:25 +0000 (17:51 -0400)
Using the new refcounting API, introduce a boxed type wrapping
GKeyFile and expose it introspection bindings in glib-types.h.

docs/reference/gobject/gobject-sections.txt
gobject/gboxed.c
gobject/glib-types.h
gobject/gobject.symbols

index 377552908135e3392b2595f25610d067dc910529..2a5daa89a2c255191700469936f4398cb237c813 100644 (file)
@@ -355,6 +355,7 @@ G_TYPE_DATE_TIME
 G_TYPE_IO_CHANNEL
 G_TYPE_IO_CONDITION
 G_TYPE_VARIANT_BUILDER
+G_TYPE_KEY_FILE
 G_TYPE_MAIN_CONTEXT
 G_TYPE_MAIN_LOOP
 G_TYPE_SOURCE
index 93415af40fe149a6531511ace2a7ec63d9e5d9ce..65ea9086e9953003358c2915824641743043a52d 100644 (file)
@@ -145,6 +145,8 @@ G_DEFINE_BOXED_TYPE (GVariantBuilder, g_variant_builder, g_variant_builder_ref,
 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 (GKeyFile, g_key_file, g_key_file_ref, g_key_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)
 G_DEFINE_BOXED_TYPE (GSource, g_source, g_source_ref, g_source_unref)
index a4826caa0d51a9fb26fe23b077c2cc976a347776..1c98453bbfde87f57d7d0d17c7de0fa0e4c0fd89 100644 (file)
@@ -209,6 +209,15 @@ typedef gsize GType;
  */
 #define G_TYPE_SOURCE (g_source_get_type ())
 
+/**
+ * G_TYPE_KEY_FILE:
+ *
+ * The #GType for a boxed type holding a #GKeyFile.
+ *
+ * Since: 2.32
+ */
+#define G_TYPE_KEY_FILE (g_key_file_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;
@@ -224,6 +233,7 @@ 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_key_file_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;
index d5b252226162a2b53c9ae6e009860b83e3be2ce9..fafa83246b02022202f7c43147e1ddb878102077 100644 (file)
@@ -27,6 +27,7 @@ g_regex_get_type
 g_match_info_get_type
 g_variant_builder_get_type
 g_variant_type_get_gtype
+g_key_file_get_type
 g_main_loop_get_type
 g_main_context_get_type
 g_source_get_type