changeset 4288:fe09acacd473

add event_queue() to the vtable as aud_event_queue()
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sun, 17 Feb 2008 21:17:26 +0900
parents 19c4a20d11a1
children af88976df6a8
files src/audacious/plugin.h src/audacious/pluginenum.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/plugin.h	Sat Feb 16 02:38:07 2008 +0300
+++ b/src/audacious/plugin.h	Sun Feb 17 21:17:26 2008 +0900
@@ -643,6 +643,8 @@
     void (*set_pvt_data)(Plugin * plugin, gpointer data);
     gpointer (*get_pvt_data)(void);
 
+    void (*event_queue)(const gchar *name, gpointer user_data);
+
 };
 
 /* Convenience macros for accessing the public API. */
@@ -984,6 +986,8 @@
 #define aud_set_pvt_data			_audvt->set_pvt_data
 #define aud_get_pvt_data			_audvt->get_pvt_data
 
+#define aud_event_queue             _audvt->event_queue
+
 #include "audacious/auddrct.h"
 
 /* for multi-file plugins :( */
--- a/src/audacious/pluginenum.c	Sat Feb 16 02:38:07 2008 +0300
+++ b/src/audacious/pluginenum.c	Sun Feb 17 21:17:26 2008 +0900
@@ -391,6 +391,8 @@
     .get_pvt_data = get_pvt_data,
     .set_pvt_data = set_pvt_data,
 
+    .event_queue = event_queue,
+
 };
 
 /*****************************************************************/