Initial original import from: fuse-2.4.2-2.fc4
[captive.git] / src / libcaptive / include / captive / storage.h
index e7c2397..f96b295 100644 (file)
 
 G_BEGIN_DECLS
 
+/**
+ * captive_image_iochannel
+ *
+ * The readl #GIOChannel to be used for accessing the disk image.
+ * It may be either directly #captive_options->image_iochannel
+ * or the wrapper by #giochannel-blind.
+ */
+extern GIOChannel *captive_image_iochannel;
+
+
+/**
+ * captive_image_size:
+ *
+ * Size of #captive_image_iochannel. Empty files are rejected and therefore
+ * this value is always >0 after successful captive_init().
+ * Value is detected by captive_giochannel_size(captive_image_iochannel).
+ */
+extern guint64 captive_image_size;
+
+
 guint64 captive_giochannel_size(GIOChannel *channel);
-gboolean captive_cdrom_init(GIOChannel *image_iochannel);
+gboolean captive_cdrom_init(void);
+gboolean captive_disk_init(void);
 
 G_END_DECLS