Apple2: Add file_set_type() and file_set_auxtype()
MLI wrapper to be able to update existing ProDOS files' type and auxtype.
This commit is contained in:
committed by
Oliver Schmidt
parent
6efe447d14
commit
86bcf32580
@@ -294,6 +294,12 @@ unsigned char get_tv (void);
|
||||
unsigned char get_ostype (void);
|
||||
/* Get the machine type. Returns one of the APPLE_xxx codes. */
|
||||
|
||||
int __fastcall__ file_set_type(const char *pathname, unsigned char type);
|
||||
/* Sets the ProDOS type for the file, returns 0 on success, sets errno on failure */
|
||||
|
||||
int __fastcall__ file_set_auxtype(const char *pathname, unsigned int auxtype);
|
||||
/* Sets the ProDOS auxtype for the file, returns 0 on success, sets errno on failure */
|
||||
|
||||
void rebootafterexit (void);
|
||||
/* Reboot machine after program termination has completed. */
|
||||
|
||||
|
||||
@@ -318,5 +318,7 @@
|
||||
extern unsigned char _filetype; /* Default: PRODOS_T_BIN */
|
||||
extern unsigned int _auxtype; /* Default: 0 */
|
||||
|
||||
|
||||
|
||||
/* End of apple2_filetype.h */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user