Mercurial > audlegacy
changeset 3745:e26ac0692e8f
export INIFile APIs
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sun, 14 Oct 2007 03:36:21 -0500 |
parents | e2f8feddbb19 |
children | d5580c6bca31 |
files | src/audacious/plugin.h src/audacious/pluginenum.c |
diffstat | 2 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/plugin.h Sun Oct 14 03:08:12 2007 -0500 +++ b/src/audacious/plugin.h Sun Oct 14 03:36:21 2007 -0500 @@ -291,6 +291,15 @@ gpointer action_data); const gchar *(*get_gentitle_format)(void); + /* INI funcs */ + INIFile *(*open_ini_file)(const gchar *filename); + void (*close_ini_file)(INIFile *key_file); + gchar *(*read_ini_string)(INIFile *key_file, const gchar *section, + const gchar *key); + GArray *(*read_ini_array)(INIFile *key_file, const gchar *section, + const gchar *key); + + /* strings API */ gchar *(*escape_shell_chars)(const gchar * string); @@ -668,6 +677,11 @@ #define aud_hook_register _audvt->hook_register #define aud_hook_call _audvt->hook_call +#define aud_open_ini_file _audvt->open_ini_file +#define aud_close_ini_file _audvt->close_ini_file +#define aud_read_ini_string _audvt->read_ini_string +#define aud_read_ini_array _audvt->read_ini_array + /* for multi-file plugins :( */ extern struct _AudaciousFuncTableV1 *_audvt;
--- a/src/audacious/pluginenum.c Sun Oct 14 03:08:12 2007 -0500 +++ b/src/audacious/pluginenum.c Sun Oct 14 03:36:21 2007 -0500 @@ -267,6 +267,11 @@ .hook_dissociate = hook_dissociate, .hook_register = hook_register, .hook_call = hook_call, + + .open_ini_file = open_ini_file, + .close_ini_file = close_ini_file, + .read_ini_string = read_ini_string, + .read_ini_array = read_ini_array, }; /*****************************************************************/