forked from len0rd/rockbox
FS#7487 - mpegplayer - video start time seek with resume
by John S. Gwynne & Brian J. Morey This should stop the patch from breaking again and give them opportunity to improve it further. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15052 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ce135909b9
commit
fd3fe45bc1
17 changed files with 1241 additions and 219 deletions
|
@ -38,9 +38,41 @@ struct configdata
|
|||
};
|
||||
|
||||
void configfile_init(struct plugin_api* newrb);
|
||||
|
||||
/* configfile_save - Given configdata entries this function will
|
||||
create a config file with these entries, destroying any
|
||||
previous config file of the same name */
|
||||
int configfile_save(const char *filename, struct configdata *cfg,
|
||||
int num_items, int version);
|
||||
|
||||
int configfile_load(const char *filename, struct configdata *cfg,
|
||||
int num_items, int min_version);
|
||||
|
||||
/* configfile_get_value - Given a key name, this function will
|
||||
return the integer value for that key.
|
||||
|
||||
Input:
|
||||
filename = config file filename
|
||||
name = (name/value) pair name entry
|
||||
Return:
|
||||
value if (name/value) pair is found
|
||||
-1 if entry is not found
|
||||
*/
|
||||
int configfile_get_value(const char* filename, const char* name);
|
||||
|
||||
/* configure_update_entry - Given a key name and integer value
|
||||
this function will update the entry if found, or add it if
|
||||
not found.
|
||||
|
||||
Input:
|
||||
filename = config file filename
|
||||
name = (name/value) pair name entry
|
||||
val = new value for (name/value) pair
|
||||
Return:
|
||||
1 if the (name/value) pair was found and updated with the new value
|
||||
0 if the (name/value) pair was added as a new entry
|
||||
-1 if error
|
||||
*/
|
||||
int configfile_update_entry(const char* filename, const char* name, int val);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue