Home | History | Annotate | Download | only in gio
      1 #ifndef __G_NATIVE_VOLUME_MONITOR_H__
      2 #define __G_NATIVE_VOLUME_MONITOR_H__
      3 
      4 #include <gio/gvolumemonitor.h>
      5 
      6 G_BEGIN_DECLS
      7 
      8 #define G_TYPE_NATIVE_VOLUME_MONITOR        (g_native_volume_monitor_get_type ())
      9 #define G_NATIVE_VOLUME_MONITOR(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_NATIVE_VOLUME_MONITOR, GNativeVolumeMonitor))
     10 #define G_NATIVE_VOLUME_MONITOR_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_NATIVE_VOLUME_MONITOR, GNativeVolumeMonitorClass))
     11 #define G_IS_NATIVE_VOLUME_MONITOR(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_NATIVE_VOLUME_MONITOR))
     12 #define G_IS_NATIVE_VOLUME_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_NATIVE_VOLUME_MONITOR))
     13 
     14 #define G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME "gio-native-volume-monitor"
     15 
     16 typedef struct _GNativeVolumeMonitor      GNativeVolumeMonitor;
     17 typedef struct _GNativeVolumeMonitorClass GNativeVolumeMonitorClass;
     18 
     19 struct _GNativeVolumeMonitor
     20 {
     21   GVolumeMonitor parent_instance;
     22 };
     23 
     24 struct _GNativeVolumeMonitorClass
     25 {
     26   GVolumeMonitorClass parent_class;
     27 
     28   GMount * (* get_mount_for_mount_path) (const char   *mount_path,
     29                                          GCancellable *cancellable);
     30 };
     31 
     32 GType g_native_volume_monitor_get_type (void) G_GNUC_CONST;
     33 
     34 G_END_DECLS
     35 
     36 #endif /* __G_NATIVE_VOLUME_MONITOR_H__ */
     37