Mercurial > audlegacy
comparison src/audacious/plugin.h @ 3386:3e9bc5fd5c36
merge
author | Cristi Magherusan <majeru@atheme-project.org> |
---|---|
date | Fri, 10 Aug 2007 14:21:21 +0300 |
parents | 7ac9c5c6b44e f985357757e0 |
children | b01c8d41d35b |
comparison
equal
deleted
inserted
replaced
3385:d1b43bf0e67d | 3386:3e9bc5fd5c36 |
---|---|
34 | 34 |
35 #ifndef BMP_PLUGIN_H | 35 #ifndef BMP_PLUGIN_H |
36 #define BMP_PLUGIN_H | 36 #define BMP_PLUGIN_H |
37 | 37 |
38 #include <glib.h> | 38 #include <glib.h> |
39 #include <gtk/gtk.h> | |
39 #include "audacious/vfs.h" | 40 #include "audacious/vfs.h" |
40 #include "audacious/titlestring.h" | 41 #include "audacious/tuple.h" |
42 #include "audacious/tuple_formatter.h" | |
41 #include "audacious/eventqueue.h" | 43 #include "audacious/eventqueue.h" |
42 | 44 |
43 #define PLUGIN(x) ((Plugin *)(x)) | 45 #define PLUGIN(x) ((Plugin *)(x)) |
44 #define INPUT_PLUGIN(x) ((InputPlugin *)(x)) | 46 #define INPUT_PLUGIN(x) ((InputPlugin *)(x)) |
45 #define OUTPUT_PLUGIN(x) ((OutputPlugin *)(x)) | 47 #define OUTPUT_PLUGIN(x) ((OutputPlugin *)(x)) |
49 #define DISCOVERY_PLUGIN(x) ((DiscoveryPlugin *)(x)) | 51 #define DISCOVERY_PLUGIN(x) ((DiscoveryPlugin *)(x)) |
50 | 52 |
51 #define LOWLEVEL_PLUGIN(x) ((LowlevelPlugin *)(x)) | 53 #define LOWLEVEL_PLUGIN(x) ((LowlevelPlugin *)(x)) |
52 | 54 |
53 #define __AUDACIOUS_NEWVFS__ | 55 #define __AUDACIOUS_NEWVFS__ |
54 #define __AUDACIOUS_PLUGIN_API__ 4 | 56 #define __AUDACIOUS_PLUGIN_API__ 5 |
55 #define __AUDACIOUS_INPUT_PLUGIN_API__ 4 | 57 #define __AUDACIOUS_INPUT_PLUGIN_API__ 5 |
56 | 58 |
57 typedef enum { | 59 typedef enum { |
58 FMT_U8, | 60 FMT_U8, |
59 FMT_S8, | 61 FMT_S8, |
60 FMT_U16_LE, | 62 FMT_U16_LE, |
250 void (*file_info_box) (gchar * filename); | 252 void (*file_info_box) (gchar * filename); |
251 | 253 |
252 OutputPlugin *output; /* deprecated */ | 254 OutputPlugin *output; /* deprecated */ |
253 | 255 |
254 /* Added in Audacious 1.1.0 */ | 256 /* Added in Audacious 1.1.0 */ |
255 TitleInput *(*get_song_tuple) (gchar * filename); | 257 Tuple *(*get_song_tuple) (gchar * filename); |
256 void (*set_song_tuple) (TitleInput * tuple); | 258 void (*set_song_tuple) (Tuple * tuple); |
257 void (*set_status_buffering) (gboolean status); | 259 void (*set_status_buffering) (gboolean status); |
258 | 260 |
259 /* Added in Audacious 1.3.0 */ | 261 /* Added in Audacious 1.3.0 */ |
260 gint (*is_our_file_from_vfs) (gchar *filename, VFSFile *fd); | 262 gint (*is_our_file_from_vfs) (gchar *filename, VFSFile *fd); |
261 gchar **vfs_extensions; | 263 gchar **vfs_extensions; |
262 | 264 |
263 /* Added in Audacious 1.4.0 */ | 265 /* Added in Audacious 1.4.0 */ |
264 void (*mseek) (InputPlayback * playback, gulong millisecond); | 266 void (*mseek) (InputPlayback * playback, gulong millisecond); |
265 TitleInput *(*probe_for_tuple)(gchar *uri, VFSFile *fd); | 267 Tuple *(*probe_for_tuple)(gchar *uri, VFSFile *fd); |
266 }; | 268 }; |
267 | 269 |
268 struct _GeneralPlugin { | 270 struct _GeneralPlugin { |
269 gpointer handle; | 271 gpointer handle; |
270 gchar *filename; | 272 gchar *filename; |