From 1710c206cf82330815b6db82316eb422f8be5370 Mon Sep 17 00:00:00 2001 From: Watcom Hecht Date: Wed, 11 Mar 2015 13:29:32 -0300 Subject: PulseAudio support for volume input --- include/i3status.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/i3status.h b/include/i3status.h index a61d966..f2a262c 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -14,10 +14,14 @@ enum { O_DZEN2, #include #include #include +#include +#include #define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0) #define max(a, b) ((a) > (b) ? (a) : (b)) +#define DEFAULT_SINK_INDEX UINT32_MAX + #if defined(LINUX) #define THERMAL_ZONE "/sys/class/thermal/thermal_zone%d/temp" @@ -195,6 +199,8 @@ void print_eth_info(yajl_gen json_gen, char *buffer, const char *interface, cons void print_load(yajl_gen json_gen, char *buffer, const char *format, const float max_threshold); void print_volume(yajl_gen json_gen, char *buffer, const char *fmt, const char *fmt_muted, const char *device, const char *mixer, int mixer_idx); bool process_runs(const char *path); +int volume_pulseaudio(uint32_t sink_idx); +bool pulse_initialize(void); /* socket file descriptor for general purposes */ extern int general_socket; @@ -203,4 +209,7 @@ extern cfg_t *cfg, *cfg_general, *cfg_section; extern void **cur_instance; +extern pthread_cond_t i3status_sleep_cond; +extern pthread_mutex_t i3status_sleep_mutex; + #endif -- cgit v1.2.3