mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gio: Add a boxed type for GFileAttributeMatcher
https://bugzilla.gnome.org/show_bug.cgi?id=616892
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user