Mercurial > audlegacy
changeset 3757:d24d28e76588
export util_get_localdir().
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sun, 14 Oct 2007 21:11:21 -0500 |
parents | 698e3936f6b4 |
children | 21b45219249f |
files | src/audacious/plugin.h src/audacious/pluginenum.c src/audacious/util.c src/audacious/util.h |
diffstat | 4 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/plugin.h Sun Oct 14 21:07:03 2007 -0500 +++ b/src/audacious/plugin.h Sun Oct 14 21:11:21 2007 -0500 @@ -295,6 +295,7 @@ GCallback button_action, gpointer action_data); const gchar *(*get_gentitle_format)(void); + gchar *(*util_get_localdir)(void); /* INI funcs */ INIFile *(*open_ini_file)(const gchar *filename); @@ -861,6 +862,8 @@ #define audacious_fileinfopopup_show_from_title _audvt->fileinfopopup_show_from_title #define audacious_fileinfopopup_hide _audvt->fileinfopopup_hide +#define audacious_get_localdir _audvt->util_get_localdir + #include "audacious/auddrct.h" /* for multi-file plugins :( */
--- a/src/audacious/pluginenum.c Sun Oct 14 21:07:03 2007 -0500 +++ b/src/audacious/pluginenum.c Sun Oct 14 21:11:21 2007 -0500 @@ -355,6 +355,8 @@ .fileinfopopup_show_from_title = fileinfopopup_show_from_title, .fileinfopopup_show_from_tuple = fileinfopopup_show_from_tuple, .fileinfopopup_hide = fileinfopopup_hide, + + .util_get_localdir = util_get_localdir, }; /*****************************************************************/
--- a/src/audacious/util.c Sun Oct 14 21:07:03 2007 -0500 +++ b/src/audacious/util.c Sun Oct 14 21:11:21 2007 -0500 @@ -949,7 +949,7 @@ /** - * audacious_get_localdir: + * util_get_localdir: * * Returns a string with the full path of Audacious local datadir (where config files are placed). * It's useful in order to put in the right place custom config files for audacious plugins. @@ -957,7 +957,7 @@ * Return value: a string with full path of Audacious local datadir (should be freed after use) **/ gchar* -audacious_get_localdir(void) +util_get_localdir(void) { gchar *datadir; gchar *tmp;
--- a/src/audacious/util.h Sun Oct 14 21:07:03 2007 -0500 +++ b/src/audacious/util.h Sun Oct 14 21:11:21 2007 -0500 @@ -100,7 +100,7 @@ GdkPixbuf *audacious_create_colorized_pixbuf(GdkPixbuf *src, gint red, gint green, gint blue); -gchar *audacious_get_localdir(void); +gchar *util_get_localdir(void); /* menu-related function */ void audacious_menu_main_show(gint x, gint y, guint button, guint time);