diff src/audacious/plugin.h @ 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 22b7212eb3f9
children f084f639e962
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