X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Ffileref.h;h=03ab4fe94fcd99c5cc98f8eb7ba1da9c0af3aca7;hb=HEAD;hp=9dd8e50f5a0e180f2b96931c016695a6fc36294e;hpb=cfdddc22cc7aa7fcfaebb74102de03de8f4ad27a;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/fileref.h b/libchimara/fileref.h index 9dd8e50..03ab4fe 100644 --- a/libchimara/fileref.h +++ b/libchimara/fileref.h @@ -3,6 +3,7 @@ #include #include "glk.h" +#include "gi_dispa.h" /** * glk_fileref_struct: @@ -14,16 +15,18 @@ struct glk_fileref_struct { /*< private >*/ glui32 magic, rock; + gidispatch_rock_t disprock; /* 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 */ + char *basename; /* Name from which real filename was derived */ 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; }; -G_GNUC_INTERNAL frefid_t fileref_new(gchar *filename, glui32 rock, glui32 usage, glui32 orig_filemode); +G_GNUC_INTERNAL frefid_t fileref_new(char *filename, char *basename, glui32 rock, glui32 usage, glui32 orig_filemode); #endif