forked from len0rd/rockbox
Added universal functions for creation of numbered filenames and date+time filenames (units with RTC only). Some size optimisations within code using these new functions. Everything should behave as before, except config saving will always find the highest file number + 1 even if the sequence is non-contiguous.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7449 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c7240cf844
commit
58e9412bff
4 changed files with 104 additions and 122 deletions
|
@ -27,6 +27,14 @@
|
|||
void output_dyn_value(char *buf, int buf_size, int value,
|
||||
const unsigned char **units, bool bin_scale);
|
||||
|
||||
char *create_numbered_filename(char *buffer, const char *path,
|
||||
const char *prefix, const char *suffix,
|
||||
int numberlen);
|
||||
#ifdef HAVE_RTC
|
||||
char *create_datetime_filename(char *buffer, const char *path,
|
||||
const char *prefix, const char *suffix);
|
||||
#endif
|
||||
|
||||
/* Read (up to) a line of text from fd into buffer and return number of bytes
|
||||
* read (which may be larger than the number of bytes stored in buffer). If
|
||||
* an error occurs, -1 is returned (and buffer contains whatever could be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue