Separated library source code from testing code, fixing #6
[rodin/chimara.git] / libchimara / fileref.h
diff --git a/libchimara/fileref.h b/libchimara/fileref.h
new file mode 100644 (file)
index 0000000..cfbdcca
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef FILEREF_H
+#define FILEREF_H
+
+#include <gtk/gtk.h>
+#include "glk.h"
+
+/**
+ * glk_fileref_struct:
+ *
+ * This is an opaque structure (see <link linkend="chimara-Opaque-Structures">
+ * Opaque Structures</link> and should not be accessed directly.
+ */
+struct glk_fileref_struct
+{
+       /*< private >*/
+       glui32 magic, rock;
+       /* Pointer to the list node in the global fileref list that contains this
+       fileref */
+       GList* fileref_list;
+       /* Fileref parameters */
+       gchar *filename; /* Always stored in the default filename encoding, not
+               UTF8 or Latin-1 */
+       glui32 orig_filemode; /* Used to check if the user gets a fileref in read
+               mode and then tries to open it in write mode */
+       glui32 usage;
+};
+
+#endif