# HG changeset patch # User Andrew O. Shadoura # Date 1218070455 -10800 # Node ID b136f202ebfa3d2242b338bb37f624caf87a6968 # Parent 4eb812a537167651694a1631aea237d197cb23f3 export functions to make libSAD usage in plugins more easy diff -r 4eb812a53716 -r b136f202ebfa src/audacious/plugin.h --- 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 diff -r 4eb812a53716 -r b136f202ebfa src/audacious/pluginenum.c --- 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,