mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Add registration hooks for extension points. Register the gio extension
2008-01-28 Alexander Larsson <alexl@redhat.com> * giomodule.[ch]: * gio.symbols: Add registration hooks for extension points. Register the gio extension points. * fam/gfamdirectorymonitor.c: * fam/gfamfilemonitor.c: * glocaldirectorymonitor.[ch]: * glocalfilemonitor.[ch]: * gnativevolumemonitor.h: * gunionvolumemonitor.c: * gunixvolumemonitor.c: * gvfs.[ch]: * gvolumemonitor.h: * inotify/ginotifydirectorymonitor.c: * inotify/ginotifyfilemonitor.c: Use the extension points registration instead of g_type_children(). svn path=/trunk/; revision=6399
This commit is contained in:
committed by
Alexander Larsson
parent
fce0485e2b
commit
bff9ecedbb
@@ -57,7 +57,11 @@ static void update_volumes (GUnixVolumeMonitor *monitor);
|
||||
static void update_mounts (GUnixVolumeMonitor *monitor);
|
||||
|
||||
#define g_unix_volume_monitor_get_type _g_unix_volume_monitor_get_type
|
||||
G_DEFINE_TYPE (GUnixVolumeMonitor, g_unix_volume_monitor, G_TYPE_NATIVE_VOLUME_MONITOR);
|
||||
G_DEFINE_TYPE_WITH_CODE (GUnixVolumeMonitor, g_unix_volume_monitor, G_TYPE_NATIVE_VOLUME_MONITOR,
|
||||
g_io_extension_point_implement (G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME,
|
||||
g_define_type_id,
|
||||
"unix",
|
||||
0));
|
||||
|
||||
static void
|
||||
g_unix_volume_monitor_finalize (GObject *object)
|
||||
@@ -168,8 +172,6 @@ g_unix_volume_monitor_class_init (GUnixVolumeMonitorClass *klass)
|
||||
monitor_class->get_mount_for_uuid = get_mount_for_uuid;
|
||||
monitor_class->is_supported = is_supported;
|
||||
|
||||
native_class->priority = 0;
|
||||
native_class->name = "unix";
|
||||
native_class->get_mount_for_mount_path = get_mount_for_mount_path;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user