Add missign single include guards
[platform/upstream/glib.git] / gio / gnativevolumemonitor.h
1 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
2 #error "Only <gio/gio.h> can be included directly."
3 #endif
4
5 #ifndef __G_NATIVE_VOLUME_MONITOR_H__
6 #define __G_NATIVE_VOLUME_MONITOR_H__
7
8 #include <gio/gvolumemonitor.h>
9
10 G_BEGIN_DECLS
11
12 #define G_TYPE_NATIVE_VOLUME_MONITOR        (g_native_volume_monitor_get_type ())
13 #define G_NATIVE_VOLUME_MONITOR(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_NATIVE_VOLUME_MONITOR, GNativeVolumeMonitor))
14 #define G_NATIVE_VOLUME_MONITOR_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_NATIVE_VOLUME_MONITOR, GNativeVolumeMonitorClass))
15 #define G_IS_NATIVE_VOLUME_MONITOR(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_NATIVE_VOLUME_MONITOR))
16 #define G_IS_NATIVE_VOLUME_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_NATIVE_VOLUME_MONITOR))
17
18 #define G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME "gio-native-volume-monitor"
19
20 typedef struct _GNativeVolumeMonitor      GNativeVolumeMonitor;
21 typedef struct _GNativeVolumeMonitorClass GNativeVolumeMonitorClass;
22
23 struct _GNativeVolumeMonitor
24 {
25   GVolumeMonitor parent_instance;
26 };
27
28 struct _GNativeVolumeMonitorClass
29 {
30   GVolumeMonitorClass parent_class;
31
32   GMount * (* get_mount_for_mount_path) (const char   *mount_path,
33                                          GCancellable *cancellable);
34 };
35
36 GType g_native_volume_monitor_get_type (void) G_GNUC_CONST;
37
38 G_END_DECLS
39
40 #endif /* __G_NATIVE_VOLUME_MONITOR_H__ */