- if (klass->is_supported())
- chosen_type = monitor_impls[i];
-
- g_type_class_unref (klass);
- }
-
- g_free (monitor_impls);
- *ret = chosen_type;
-
- return NULL;
-}
-
-/**
- * g_local_directory_monitor_new:
- * @dirname: filename of the directory to monitor.
- * @flags: #GFileMonitorFlags.
- *
- * Returns: new #GDirectoryMonitor for the given @dirname.
- **/
-GDirectoryMonitor*
-_g_local_directory_monitor_new (const char* dirname,
- GFileMonitorFlags flags)
-{
- static GOnce once_init = G_ONCE_INIT;
- static GType monitor_type = G_TYPE_INVALID;
-
- g_once (&once_init, get_default_local_directory_monitor, &monitor_type);
-
- if (monitor_type != G_TYPE_INVALID)
- return G_DIRECTORY_MONITOR (g_object_new (monitor_type, "dirname", dirname, NULL));
-
- return NULL;