-static gpointer
-get_default_local_directory_monitor (gpointer data)
-{
- GLocalDirectoryMonitorClass *chosen_class;
- GLocalDirectoryMonitorClass **ret = data;
- GIOExtensionPoint *ep;
- GList *extensions, *l;
-
- _g_io_modules_ensure_loaded ();
-
- ep = g_io_extension_point_lookup (G_LOCAL_DIRECTORY_MONITOR_EXTENSION_POINT_NAME);
-
- extensions = g_io_extension_point_get_extensions (ep);
-
- chosen_class = NULL;
- for (l = extensions; l != NULL; l = l->next)
- {
- GIOExtension *extension = l->data;
- GLocalDirectoryMonitorClass *klass;
-
- klass = G_LOCAL_DIRECTORY_MONITOR_CLASS (g_io_extension_ref_class (extension));
-
- if (klass->is_supported ())
- {
- chosen_class = klass;
- break;
- }
- else
- g_type_class_unref (klass);
- }
-
- if (chosen_class)
- {
- *ret = chosen_class;
- return (gpointer)G_TYPE_FROM_CLASS (chosen_class);
- }
- else
- return (gpointer)G_TYPE_INVALID;
-}
-
-/**
- * _g_local_directory_monitor_new:
- * @dirname: filename of the directory to monitor.
- * @flags: #GFileMonitorFlags.
- *
- * Returns: new #GFileMonitor for the given @dirname.
- **/