Mercurial > audlegacy
changeset 4030:0b004b3bfb70
Add plugin function to pull volume.
author | Jonathan Schleifer <js-audacious@webkeks.org> |
---|---|
date | Wed, 28 Nov 2007 18:15:04 +0100 |
parents | 501f9671be9b |
children | 23b86846e17c |
files | src/audacious/plugin.h src/audacious/pluginenum.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/plugin.h Wed Nov 28 06:02:59 2007 +0900 +++ b/src/audacious/plugin.h Wed Nov 28 18:15:04 2007 +0100 @@ -588,6 +588,8 @@ gboolean (*dock_is_moving)(GtkWindow * w); GList *(*get_output_list)(void); + + void (*input_get_volume)(gint * l, gint * r); }; /* Convenience macros for accessing the public API. */ @@ -927,6 +929,8 @@ #define aud_get_output_list _audvt->get_output_list +#define aud_input_get_volume _audvt->input_get_volume + #include "audacious/auddrct.h" /* for multi-file plugins :( */
--- a/src/audacious/pluginenum.c Wed Nov 28 06:02:59 2007 +0900 +++ b/src/audacious/pluginenum.c Wed Nov 28 18:15:04 2007 +0100 @@ -386,6 +386,8 @@ .dock_is_moving = dock_is_moving, .get_output_list = get_output_list, + + .input_get_volume = input_get_volume, }; /*****************************************************************/