Mercurial > audlegacy
comparison src/audacious/plugin.h @ 3745:e26ac0692e8f
export INIFile APIs
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sun, 14 Oct 2007 03:36:21 -0500 |
| parents | e2f8feddbb19 |
| children | d5580c6bca31 |
comparison
equal
deleted
inserted
replaced
| 3744:e2f8feddbb19 | 3745:e26ac0692e8f |
|---|---|
| 289 const gchar * button_text, gboolean modal, | 289 const gchar * button_text, gboolean modal, |
| 290 GCallback button_action, | 290 GCallback button_action, |
| 291 gpointer action_data); | 291 gpointer action_data); |
| 292 const gchar *(*get_gentitle_format)(void); | 292 const gchar *(*get_gentitle_format)(void); |
| 293 | 293 |
| 294 /* INI funcs */ | |
| 295 INIFile *(*open_ini_file)(const gchar *filename); | |
| 296 void (*close_ini_file)(INIFile *key_file); | |
| 297 gchar *(*read_ini_string)(INIFile *key_file, const gchar *section, | |
| 298 const gchar *key); | |
| 299 GArray *(*read_ini_array)(INIFile *key_file, const gchar *section, | |
| 300 const gchar *key); | |
| 301 | |
| 302 | |
| 294 /* strings API */ | 303 /* strings API */ |
| 295 gchar *(*escape_shell_chars)(const gchar * string); | 304 gchar *(*escape_shell_chars)(const gchar * string); |
| 296 | 305 |
| 297 gchar *(*str_append)(gchar * str, const gchar * add_str); | 306 gchar *(*str_append)(gchar * str, const gchar * add_str); |
| 298 gchar *(*str_replace)(gchar * str, gchar * new_str); | 307 gchar *(*str_replace)(gchar * str, gchar * new_str); |
| 666 #define aud_hook_associate _audvt->hook_associate | 675 #define aud_hook_associate _audvt->hook_associate |
| 667 #define aud_hook_dissociate _audvt->hook_dissociate | 676 #define aud_hook_dissociate _audvt->hook_dissociate |
| 668 #define aud_hook_register _audvt->hook_register | 677 #define aud_hook_register _audvt->hook_register |
| 669 #define aud_hook_call _audvt->hook_call | 678 #define aud_hook_call _audvt->hook_call |
| 670 | 679 |
| 680 #define aud_open_ini_file _audvt->open_ini_file | |
| 681 #define aud_close_ini_file _audvt->close_ini_file | |
| 682 #define aud_read_ini_string _audvt->read_ini_string | |
| 683 #define aud_read_ini_array _audvt->read_ini_array | |
| 684 | |
| 671 /* for multi-file plugins :( */ | 685 /* for multi-file plugins :( */ |
| 672 extern struct _AudaciousFuncTableV1 *_audvt; | 686 extern struct _AudaciousFuncTableV1 *_audvt; |
| 673 | 687 |
| 674 #define DECLARE_PLUGIN(name, init, fini, ...) \ | 688 #define DECLARE_PLUGIN(name, init, fini, ...) \ |
| 675 G_BEGIN_DECLS \ | 689 G_BEGIN_DECLS \ |
