# HG changeset patch # User William Pitcock # Date 1192337025 18000 # Node ID a1b31fe5a24968196df01527250c9c0d4662b0d7 # Parent 240669919716ca4b63c7987c65c1922290033b67 export ip_data and cfg diff -r 240669919716 -r a1b31fe5a249 src/audacious/input.h --- a/src/audacious/input.h Sat Oct 13 23:29:35 2007 -0500 +++ b/src/audacious/input.h Sat Oct 13 23:43:45 2007 -0500 @@ -26,9 +26,9 @@ #ifndef _AUDACIOUS_INPUT_H #define _AUDACIOUS_INPUT_H -#include "plugin.h" +typedef struct _InputPluginData InputPluginData; -typedef struct _InputPluginData InputPluginData; +#include "plugin.h" struct _InputPluginData { GList *input_list; diff -r 240669919716 -r a1b31fe5a249 src/audacious/plugin.h --- a/src/audacious/plugin.h Sat Oct 13 23:29:35 2007 -0500 +++ b/src/audacious/plugin.h Sat Oct 13 23:43:45 2007 -0500 @@ -43,6 +43,7 @@ #include "audacious/eventqueue.h" #include "audacious/configdb.h" #include "audacious/playlist_container.h" +#include "audacious/main.h" #define PLUGIN(x) ((Plugin *)(x)) #define INPUT_PLUGIN(x) ((InputPlugin *)(x)) @@ -434,6 +435,9 @@ gboolean (*playlist_playlists_equal)(Playlist *p1, Playlist *p2); + /* state vars */ + InputPluginData *ip_state; + BmpConfig *_cfg; }; /* Convenience macros for accessing the public API. */ @@ -649,6 +653,9 @@ #define aud_playlist_get_active _audvt->playlist_get_active #define aud_playlist_playlists_equal _audvt->playlist_playlists_equal +#define aud_ip_state _audvt->ip_state +#define aud_cfg _audvt->_cfg + /* for multi-file plugins :( */ extern struct _AudaciousFuncTableV1 *_audvt; diff -r 240669919716 -r a1b31fe5a249 src/audacious/pluginenum.c --- a/src/audacious/pluginenum.c Sat Oct 13 23:29:35 2007 -0500 +++ b/src/audacious/pluginenum.c Sat Oct 13 23:43:45 2007 -0500 @@ -259,6 +259,9 @@ .playlist_get_active = playlist_get_active, .playlist_playlists_equal = playlist_playlists_equal, + + .ip_state = &ip_data, + ._cfg = &cfg, }; /*****************************************************************/