X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Ffileref.h;fp=libchimara%2Ffileref.h;h=cfbdcca034b46396c9eb3bd119548a0c9ed8464f;hb=0b85f1dd5993e2ed111ec2ba13bbbb4ebda06ada;hp=0000000000000000000000000000000000000000;hpb=08f8444e2ae5480eea1cf7e2c1e2eb57f46152db;p=rodin%2Fchimara.git diff --git a/libchimara/fileref.h b/libchimara/fileref.h new file mode 100644 index 0000000..cfbdcca --- /dev/null +++ b/libchimara/fileref.h @@ -0,0 +1,28 @@ +#ifndef FILEREF_H +#define FILEREF_H + +#include +#include "glk.h" + +/** + * glk_fileref_struct: + * + * This is an opaque structure (see + * Opaque Structures 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