gio: Add a boxed type for GFileAttributeMatcher
authorTorsten Schönfeld <kaffeetisch@gmx.de>
Mon, 26 Apr 2010 21:38:41 +0000 (23:38 +0200)
committerTorsten Schönfeld <kaffeetisch@gmx.de>
Mon, 3 May 2010 18:13:35 +0000 (20:13 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=616892

docs/reference/gio/gio.types
gio/gfileinfo.c
gio/gfileinfo.h
gio/gio.symbols

index 34674c8..e8f9738 100644 (file)
@@ -24,6 +24,7 @@ g_emblem_get_type
 g_emblem_origin_get_type
 g_emblemed_icon_get_type
 g_file_attribute_info_flags_get_type
+g_file_attribute_matcher_get_type
 g_file_attribute_status_get_type
 g_file_attribute_type_get_type
 g_file_copy_flags_get_type
index 23cc888..b9722a3 100644 (file)
@@ -2148,6 +2148,24 @@ matcher_add (GFileAttributeMatcher *matcher,
   g_array_append_val (matcher->more_sub_matchers, s);
 }
 
+GType
+g_file_attribute_matcher_get_type (void)
+{
+  static volatile gsize g_define_type_id__volatile = 0;
+
+  if (g_once_init_enter (&g_define_type_id__volatile))
+    {
+      GType g_define_type_id =
+        g_boxed_type_register_static (I_("GFileAttributeMatcher"),
+                                      (GBoxedCopyFunc) g_file_attribute_matcher_ref,
+                                      (GBoxedFreeFunc) g_file_attribute_matcher_unref);
+
+      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
+    }
+
+  return g_define_type_id__volatile;
+}
+
 /**
  * g_file_attribute_matcher_new:
  * @attributes: an attribute string to match.
index 2b5110f..90188eb 100644 (file)
@@ -935,6 +935,7 @@ void              g_file_info_set_symlink_target     (GFileInfo         *info,
 void              g_file_info_set_sort_order         (GFileInfo         *info,
                                                      gint32             sort_order);
 
+GType                  g_file_attribute_matcher_get_type       (void) G_GNUC_CONST;
 GFileAttributeMatcher *g_file_attribute_matcher_new            (const char            *attributes);
 GFileAttributeMatcher *g_file_attribute_matcher_ref            (GFileAttributeMatcher *matcher);
 void                   g_file_attribute_matcher_unref          (GFileAttributeMatcher *matcher);
index aa2eadf..8c278fa 100644 (file)
@@ -485,6 +485,7 @@ g_file_info_set_size
 g_file_info_set_modification_time
 g_file_info_set_symlink_target
 g_file_info_set_sort_order
+g_file_attribute_matcher_get_type G_GNUC_CONST
 g_file_attribute_matcher_new
 g_file_attribute_matcher_ref
 g_file_attribute_matcher_unref