Mercurial > audlegacy
comparison src/audacious/plugin.h @ 3751:0fb35f6cc4b7
PluginMenu API is exported now. No changes required to plugins.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sun, 14 Oct 2007 16:58:36 -0500 |
parents | 08e87e5051d8 |
children | 22d71f986b86 |
comparison
equal
deleted
inserted
replaced
3749:e97cee2185ce | 3751:0fb35f6cc4b7 |
---|---|
95 #include "audacious/input.h" | 95 #include "audacious/input.h" |
96 #include "audacious/mime.h" | 96 #include "audacious/mime.h" |
97 #include "audacious/custom_uri.h" | 97 #include "audacious/custom_uri.h" |
98 #include "audacious/hook.h" | 98 #include "audacious/hook.h" |
99 #include "audacious/xconvert.h" | 99 #include "audacious/xconvert.h" |
100 #include "audacious/ui_plugin_menu.h" | |
100 | 101 |
101 #define PLUGIN_COMMON_FIELDS \ | 102 #define PLUGIN_COMMON_FIELDS \ |
102 gpointer handle; \ | 103 gpointer handle; \ |
103 gchar *filename; \ | 104 gchar *filename; \ |
104 gchar *description; \ | 105 gchar *description; \ |
466 convert_channel_func_t (*xmms_convert_get_channel_func)(AFormat fmt, | 467 convert_channel_func_t (*xmms_convert_get_channel_func)(AFormat fmt, |
467 int output, | 468 int output, |
468 int input); | 469 int input); |
469 convert_freq_func_t (*xmms_convert_get_frequency_func)(AFormat fmt, | 470 convert_freq_func_t (*xmms_convert_get_frequency_func)(AFormat fmt, |
470 int channels); | 471 int channels); |
472 | |
473 /* PluginMenu API */ | |
474 gint (*menu_plugin_item_add)(gint, GtkWidget *); | |
475 gint (*menu_plugin_item_remove)(gint, GtkWidget *); | |
471 | 476 |
472 }; | 477 }; |
473 | 478 |
474 /* Convenience macros for accessing the public API. */ | 479 /* Convenience macros for accessing the public API. */ |
475 /* public name vtable mapping */ | 480 /* public name vtable mapping */ |
702 #define aud_convert_buffers_destroy _audvt->xmms_convert_buffers_destroy | 707 #define aud_convert_buffers_destroy _audvt->xmms_convert_buffers_destroy |
703 #define aud_convert_get_func _audvt->xmms_convert_get_func | 708 #define aud_convert_get_func _audvt->xmms_convert_get_func |
704 #define aud_convert_get_channel_func _audvt->xmms_convert_get_channel_func | 709 #define aud_convert_get_channel_func _audvt->xmms_convert_get_channel_func |
705 #define aud_convert_get_frequency_func _audvt->xmms_convert_get_frequency_func | 710 #define aud_convert_get_frequency_func _audvt->xmms_convert_get_frequency_func |
706 | 711 |
712 #define audacious_menu_plugin_item_add _audvt->menu_plugin_item_add | |
713 #define audacious_menu_plugin_item_remove _audvt->menu_plugin_item_remove | |
714 #define aud_menu_plugin_item_add _audvt->menu_plugin_item_add | |
715 #define aud_menu_plugin_item_remove _audvt->menu_plugin_item_remove | |
716 | |
707 /* for multi-file plugins :( */ | 717 /* for multi-file plugins :( */ |
708 extern struct _AudaciousFuncTableV1 *_audvt; | 718 extern struct _AudaciousFuncTableV1 *_audvt; |
709 | 719 |
710 #define DECLARE_PLUGIN(name, init, fini, ...) \ | 720 #define DECLARE_PLUGIN(name, init, fini, ...) \ |
711 G_BEGIN_DECLS \ | 721 G_BEGIN_DECLS \ |