# HG changeset patch # User William Pitcock # Date 1192350981 18000 # Node ID e26ac0692e8fc27bf95d3a5d518ea01e666da001 # Parent e2f8feddbb1918ba9433d31f0c96be981a1cee39 export INIFile APIs diff -r e2f8feddbb19 -r e26ac0692e8f src/audacious/plugin.h --- 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; diff -r e2f8feddbb19 -r e26ac0692e8f src/audacious/pluginenum.c --- 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, }; /*****************************************************************/