Add new error codes for when compilation fails and make compilation error
[platform/upstream/glib.git] / gio / gnativevolumemonitor.h
1 #ifndef __G_NATIVE_VOLUME_MONITOR_H__
2 #define __G_NATIVE_VOLUME_MONITOR_H__
3
4 #include <glib-object.h>
5 #include <gio/gvolumemonitor.h>
6
7 G_BEGIN_DECLS
8
9 #define G_TYPE_NATIVE_VOLUME_MONITOR        (g_native_volume_monitor_get_type ())
10 #define G_NATIVE_VOLUME_MONITOR(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_NATIVE_VOLUME_MONITOR, GNativeVolumeMonitor))
11 #define G_NATIVE_VOLUME_MONITOR_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_NATIVE_VOLUME_MONITOR, GNativeVolumeMonitorClass))
12 #define G_IS_NATIVE_VOLUME_MONITOR(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_NATIVE_VOLUME_MONITOR))
13 #define G_IS_NATIVE_VOLUME_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_NATIVE_VOLUME_MONITOR))
14
15 typedef struct _GNativeVolumeMonitor GNativeVolumeMonitor;
16 typedef struct _GNativeVolumeMonitorClass GNativeVolumeMonitorClass;
17
18 struct _GNativeVolumeMonitor {
19   GVolumeMonitor parent;
20 };
21
22 struct _GNativeVolumeMonitorClass {
23   GVolumeMonitorClass parent_class;
24
25   GVolume * (*get_volume_for_mountpoint) (const char *mountpoint);
26   
27   int priority;
28 };
29
30 GType g_native_volume_monitor_get_type (void) G_GNUC_CONST;
31
32
33 G_END_DECLS
34
35 #endif /* __G_NATIVE_VOLUME_MONITOR_H__ */