Mercurial > audlegacy
changeset 4754:b136f202ebfa
export functions to make libSAD usage in plugins more easy
author | Andrew O. Shadoura <bugzilla@tut.by> |
---|---|
date | Thu, 07 Aug 2008 03:54:15 +0300 |
parents | 4eb812a53716 |
children | f084f639e962 bb0638143fc8 |
files | src/audacious/plugin.h src/audacious/pluginenum.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/plugin.h Wed Aug 06 23:10:54 2008 +0300 +++ b/src/audacious/plugin.h Thu Aug 07 03:54:15 2008 +0300 @@ -47,6 +47,7 @@ #include "audacious/preferences.h" #include "audacious/interface.h" #include "audacious/equalizer_preset.h" +#include "libSAD/libSAD.h" #define PLUGIN(x) ((Plugin *)(x)) #define INPUT_PLUGIN(x) ((InputPlugin *)(x)) @@ -363,6 +364,9 @@ gchar *(*util_get_localdir)(void); void (*util_menu_main_show)(gint x, gint y, guint button, guint time); + gpointer (*smart_realloc)(gpointer ptr, gsize *size); + SAD_sample_format (*sadfmt_from_afmt)(AFormat fmt); + /* INI funcs */ INIFile *(*open_ini_file)(const gchar *filename); void (*close_ini_file)(INIFile *key_file); @@ -750,6 +754,8 @@ #define aud_info_dialog _audvt->util_info_dialog #define audacious_info_dialog _audvt->util_info_dialog #define aud_get_gentitle_format _audvt->get_gentitle_format +#define aud_smart_realloc _audvt->smart_realloc +#define aud_sadfmt_from_afmt _audvt->sadfmt_from_afmt #define aud_escape_shell_chars _audvt->escape_shell_chars #define aud_str_append _audvt->str_append
--- a/src/audacious/pluginenum.c Wed Aug 06 23:10:54 2008 +0300 +++ b/src/audacious/pluginenum.c Thu Aug 07 03:54:15 2008 +0300 @@ -154,6 +154,9 @@ .util_info_dialog = util_info_dialog, .get_gentitle_format = get_gentitle_format, + .smart_realloc = smart_realloc, + .sadfmt_from_afmt = sadfmt_from_afmt, + .escape_shell_chars = escape_shell_chars, .str_append = str_append, .str_replace = str_replace,