changeset 3758:21b45219249f

export input_check_file().
author William Pitcock <nenolod@atheme.org>
date Sun, 14 Oct 2007 21:34:45 -0500
parents d24d28e76588
children 9e54690956a0
files src/audacious/plugin.h src/audacious/pluginenum.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 :( */
--- 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,
 };
 
 /*****************************************************************/