diff options
| author | Wiimm <wiimm@wiimm.de> | 2022-12-16 16:02:51 +0100 |
|---|---|---|
| committer | Wiimm <wiimm@wiimm.de> | 2022-12-16 16:02:51 +0100 |
| commit | 0e143e393d99ebb00cb14ffaa4c50efeec3729f1 (patch) | |
| tree | eb3843c088d6306f08b43e6940ffcca76c1e2912 /project/src/lib-std.h | |
| parent | f6b04f8a74242cc98a9dd511ace55fe3c905d937 (diff) | |
SZS v2.31a
Diffstat (limited to '')
| -rw-r--r-- | project/src/lib-std.h | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/project/src/lib-std.h b/project/src/lib-std.h index 7bc302b..64cea89 100644 --- a/project/src/lib-std.h +++ b/project/src/lib-std.h @@ -750,7 +750,16 @@ file_format_t IsImageFF // returns the normalized FF for a valid image or NULL (=FF_UNKNOWN) file_format_t fform, // file format to check - bool allow_png // true: allow PNG + bool allow_png // true: allow FF_PNG +); + +file_format_t GetImageFFByFName +( + // returns the normalized FF for a valid image or NULL (=FF_UNKNOWN) + + ccp fname, // NULL or filename to analyse extention + file_format_t default_fform, // use this as default/fallback + bool allow_png // true: allow FF_PNG ); file_format_t GetImageFF @@ -759,7 +768,7 @@ file_format_t GetImageFF file_format_t fform2, // if a valid image ff, use this one ccp path, // not NULL and exists: use file format file_format_t default_fform, // use this as default, if valid ff - bool allow_png, // true: allow PNG + bool allow_png, // true: allow FF_PNG file_format_t not_found // return this, if all other fails ); @@ -860,6 +869,16 @@ enumError LoadFILE bool fatt_max // true: store *max* values to 'fatt' ); + +enumError WriteFILE +( + FILE *f, // valid file for output + ccp path1, // NULL or part #1 of path for messages + ccp path2, // NULL or part #2 of path for messages + const void * data, // data to write + uint data_size // size of 'data' +); + enumError SaveFILE ( ccp path1, // NULL or part #1 of path @@ -870,6 +889,17 @@ enumError SaveFILE FileAttrib_t * fatt // not NULL: set timestamps using this attribs ); +enumError SaveFILE2 +( + FILE * f, // output file, if NULL use path1+path2 + ccp path1, // NULL or part #1 of path + ccp path2, // NULL or part #2 of path + bool overwrite, // true: force overwriting + const void * data, // data to write + uint data_size, // size of 'data' + FileAttrib_t * fatt // not NULL: set timestamps using this attribs +); + uint IsolateFilename ( // return length of found and copied string |
