comparison src/audacious/plugin.h @ 2794:2685fc11cd9a trunk

[svn] - begin work on the host side of plugin API v2.
author nenolod
date Thu, 24 May 2007 01:47:50 -0700
parents 637359219e10
children e9af66a1be74
comparison
equal deleted inserted replaced
2793:885ec4399359 2794:2685fc11cd9a
49 #define VIS_PLUGIN(x) ((VisPlugin *)(x)) 49 #define VIS_PLUGIN(x) ((VisPlugin *)(x))
50 50
51 #define LOWLEVEL_PLUGIN(x) ((LowlevelPlugin *)(x)) 51 #define LOWLEVEL_PLUGIN(x) ((LowlevelPlugin *)(x))
52 52
53 #define __AUDACIOUS_NEWVFS__ 53 #define __AUDACIOUS_NEWVFS__
54 #define __AUDACIOUS_INPUT_PLUGIN_API__ 2 54 #define __AUDACIOUS_PLUGIN_API__ 2
55 #define __AUDACIOUS_INPUT_PLUGIN_API__ 3
55 56
56 typedef enum { 57 typedef enum {
57 FMT_U8, 58 FMT_U8,
58 FMT_S8, 59 FMT_S8,
59 FMT_U16_LE, 60 FMT_U16_LE,
86 /* Sadly, this is the most we can generalize out of the disparate 87 /* Sadly, this is the most we can generalize out of the disparate
87 plugin structs usable with typecasts - descender */ 88 plugin structs usable with typecasts - descender */
88 struct _Plugin { 89 struct _Plugin {
89 gpointer handle; 90 gpointer handle;
90 gchar *filename; 91 gchar *filename;
92 gchar *description;
91 }; 93 };
92 94
93 /* 95 /*
94 * LowlevelPlugin is used for lowlevel system services, such as PlaylistContainers, 96 * LowlevelPlugin is used for lowlevel system services, such as PlaylistContainers,
95 * VFSContainers and the like. 97 * VFSContainers and the like.
211 213
212 struct _GeneralPlugin { 214 struct _GeneralPlugin {
213 gpointer handle; 215 gpointer handle;
214 gchar *filename; 216 gchar *filename;
215 217
216 gint xmms_session;
217 gchar *description; 218 gchar *description;
218 219
219 void (*init) (void); 220 void (*init) (void);
220 void (*about) (void); 221 void (*about) (void);
221 void (*configure) (void); 222 void (*configure) (void);
224 225
225 struct _VisPlugin { 226 struct _VisPlugin {
226 gpointer handle; 227 gpointer handle;
227 gchar *filename; 228 gchar *filename;
228 229
229 gint xmms_session;
230 gchar *description; 230 gchar *description;
231 231
232 gint num_pcm_chs_wanted; 232 gint num_pcm_chs_wanted;
233 gint num_freq_chs_wanted; 233 gint num_freq_chs_wanted;
234 234