1 /**************************************************************
2 **** diskio.h : prototypes for reading / writing files ****
3 **** Free software under GNU license, started on 25.2.2000 ****
4 **** © T.Pierron, C.Guillaume. ****
5 **************************************************************/
12 /* This is the fields modified by load_file in Project datatype **
13 ** But because of this function may failed, we must use another **
14 ** datatype and re-fill original structure in case of success */
17 STRPTR filename
; /* Just fill this field */
25 WORD
load_file ( LoadFileArgs
* );
26 WORD
read_file ( LoadFileArgs
*, ULONG
* );
27 BYTE
save_file ( STRPTR
, LINE
*, unsigned char eol
, LONG protection
);
28 BYTE
get_full_path ( STRPTR
, STRPTR
* );
30 #ifndef INTUITION_INTUITION_H
34 /** Arguments to use with ask_save and ask_load function **/
37 STRPTR dir
; /* Directory name */
38 STRPTR file
; /* File name */
39 UBYTE modifmark
; /* True if file has modif. mark */
42 /** Split a name into two pointers **/
43 void split_path( AskArgs
*, STRPTR
*, STRPTR
* );
45 /** Prompt user for a filename **/
46 STRPTR
ask_save(struct Window
*, AskArgs
*, CONST_STRPTR
);
48 /** Like previous but with ASL_LOAD. if setfile is 1 File gadget will
49 *** be initially fill. Otherwise it will be empty and multi-select will
50 *** be enabled. Thus a (StartUpArgs *) will be returned instead (utility.h).
52 STRPTR
ask_load(struct Window
*, AskArgs
*, BYTE setfile
, CONST_STRPTR asltitle
);
54 void free_diskio_alloc(void);