Mercurial > audlegacy
comparison src/audacious/plugin.h @ 3731:0e5da33a32b7
fun util dialog shit -> vtable
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sat, 13 Oct 2007 19:11:52 -0500 |
| parents | a89a12aa4f2c |
| children | e82ec5cb017c |
comparison
equal
deleted
inserted
replaced
| 3730:ebf763c51061 | 3731:0e5da33a32b7 |
|---|---|
| 276 void (*mime_set_plugin)(const gchar *mimetype, InputPlugin *ip); | 276 void (*mime_set_plugin)(const gchar *mimetype, InputPlugin *ip); |
| 277 | 277 |
| 278 /* Custom URI registry */ | 278 /* Custom URI registry */ |
| 279 InputPlugin *(*uri_get_plugin)(const gchar *filename); | 279 InputPlugin *(*uri_get_plugin)(const gchar *filename); |
| 280 void (*uri_set_plugin)(const gchar *uri, InputPlugin *ip); | 280 void (*uri_set_plugin)(const gchar *uri, InputPlugin *ip); |
| 281 | |
| 282 /* Util funcs */ | |
| 283 GtkWidget *(*util_info_dialog)(const gchar * title, const gchar * text, | |
| 284 const gchar * button_text, gboolean modal, | |
| 285 GCallback button_action, | |
| 286 gpointer action_data); | |
| 281 | 287 |
| 282 }; | 288 }; |
| 283 | 289 |
| 284 /* Convenience macros for accessing the public API. */ | 290 /* Convenience macros for accessing the public API. */ |
| 285 /* public name vtable mapping */ | 291 /* public name vtable mapping */ |
| 364 #define aud_mime_set_plugin _audvt->mime_set_plugin | 370 #define aud_mime_set_plugin _audvt->mime_set_plugin |
| 365 | 371 |
| 366 #define aud_uri_get_plugin _audvt->uri_get_plugin | 372 #define aud_uri_get_plugin _audvt->uri_get_plugin |
| 367 #define aud_uri_set_plugin _audvt->uri_set_plugin | 373 #define aud_uri_set_plugin _audvt->uri_set_plugin |
| 368 | 374 |
| 375 #define aud_info_dialog _audvt->util_info_dialog | |
| 376 #define audacious_info_dialog _audvt->util_info_dialog | |
| 377 | |
| 369 /* for multi-file plugins :( */ | 378 /* for multi-file plugins :( */ |
| 370 extern struct _AudaciousFuncTableV1 *_audvt; | 379 extern struct _AudaciousFuncTableV1 *_audvt; |
| 371 | 380 |
| 372 #define DECLARE_PLUGIN(name, init, fini, ...) \ | 381 #define DECLARE_PLUGIN(name, init, fini, ...) \ |
| 373 G_BEGIN_DECLS \ | 382 G_BEGIN_DECLS \ |
