- return (* class->parse_name) (vfs, parse_name);
-}
-
-/* Note: This compares in reverse order.
- Higher prio -> sort first
- */
-static gint
-compare_vfs_type (gconstpointer a,
- gconstpointer b,
- gpointer user_data)
-{
- GVfsClass *class_a, *class_b;
- gint res;
- const char *use_this_vfs;
-
- class_a = g_type_class_ref (*(GType *)a);
- class_b = g_type_class_ref (*(GType *)b);
- use_this_vfs = user_data;
-
- if (class_a == class_b)
- res = 0;
- else if (use_this_vfs != NULL &&
- strcmp (class_a->name, use_this_vfs) == 0)
- res = -1;
- else if (use_this_vfs != NULL &&
- strcmp (class_b->name, use_this_vfs) == 0)
- res = 1;
- else
- res = class_b->priority - class_a->priority;
-
- g_type_class_unref (class_a);
- g_type_class_unref (class_b);
-
- return res;
-}
-
-
-static gpointer
-get_default_vfs (gpointer arg)
-{
- volatile GType local_type;
- GType *vfs_impls;
- int i;
- guint n_vfs_impls;
- const char *use_this;
- GVfs *vfs;
- GType (*casted_get_type)(void);
-
- use_this = g_getenv ("GIO_USE_VFS");
-
- /* Ensure GLocalVfs type is available
- the cast is required to avoid any G_GNUC_CONST optimizations */
- casted_get_type = _g_local_vfs_get_type;
- local_type = casted_get_type ();
-
- /* Ensure vfs in modules loaded */
- _g_io_modules_ensure_loaded ();
-
- vfs_impls = g_type_children (G_TYPE_VFS, &n_vfs_impls);