# HG changeset patch # User William Pitcock # Date 1192415685 18000 # Node ID 21b45219249f2b89433b33f9a9ba34fe59eaaf59 # Parent d24d28e765888601cbb57ea7c34c060c1ff033b6 export input_check_file(). diff -r d24d28e76588 -r 21b45219249f src/audacious/plugin.h --- a/src/audacious/plugin.h Sun Oct 14 21:11:21 2007 -0500 +++ b/src/audacious/plugin.h Sun Oct 14 21:34:45 2007 -0500 @@ -552,6 +552,9 @@ void (*fileinfopopup_show_from_tuple)(GtkWidget *fileinfopopup_win, Tuple *tuple); void (*fileinfopopup_show_from_title)(GtkWidget *fileinfopopup_win, gchar *title); void (*fileinfopopup_hide)(GtkWidget *filepopup_win, gpointer unused); + + /* Probe */ + ProbeResult *(*input_check_file)(const gchar * filename, gboolean show_warning); }; /* Convenience macros for accessing the public API. */ @@ -864,6 +867,8 @@ #define audacious_get_localdir _audvt->util_get_localdir +#define aud_input_check_file _audvt->input_check_file + #include "audacious/auddrct.h" /* for multi-file plugins :( */ diff -r d24d28e76588 -r 21b45219249f src/audacious/pluginenum.c --- a/src/audacious/pluginenum.c Sun Oct 14 21:11:21 2007 -0500 +++ b/src/audacious/pluginenum.c Sun Oct 14 21:34:45 2007 -0500 @@ -357,6 +357,8 @@ .fileinfopopup_hide = fileinfopopup_hide, .util_get_localdir = util_get_localdir, + + .input_check_file = input_check_file, }; /*****************************************************************/