diff options
author | Max Kellermann <max@duempel.org> | 2011-09-17 19:33:51 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-17 19:33:51 +0200 |
commit | 947848ebf6eb4706e8b3a88e7506e893b01f9a07 (patch) | |
tree | 354d2f860d9aa6d3a9046b170520b78bb9b20c4b /src/output/roar_output_plugin.h | |
parent | 5e22fe488ed7209c6e470e542826da4674e93338 (diff) | |
download | mpd-947848ebf6eb4706e8b3a88e7506e893b01f9a07.tar.gz mpd-947848ebf6eb4706e8b3a88e7506e893b01f9a07.tar.xz mpd-947848ebf6eb4706e8b3a88e7506e893b01f9a07.zip |
output/roar: export volume methods
Use these instead of exposing the internal roar_t struct.
Diffstat (limited to '')
-rw-r--r-- | src/output/roar_output_plugin.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/output/roar_output_plugin.h b/src/output/roar_output_plugin.h index 08e272007..e6eff1e08 100644 --- a/src/output/roar_output_plugin.h +++ b/src/output/roar_output_plugin.h @@ -22,20 +22,14 @@ #ifndef __ROAR_OUTPUT_H #define __ROAR_OUTPUT_H -#include <roaraudio.h> -#include <glib.h> +#include <stdbool.h> -typedef struct roar -{ - roar_vs_t * vss; - int err; - char *host; - char *name; - int role; - struct roar_connection con; - struct roar_audio_info info; - GMutex *lock; - volatile bool alive; -} roar_t; +struct roar; + +int +roar_output_get_volume(struct roar *roar); + +bool +roar_output_set_volume(struct roar *roar, unsigned volume); #endif |