diff options
author | Watcom Hecht <watcom.hecht@gmail.com> | 2015-03-11 13:29:32 -0300 |
---|---|---|
committer | Watcom Hecht <watcom.hecht@gmail.com> | 2015-04-03 17:57:40 -0300 |
commit | 1710c206cf82330815b6db82316eb422f8be5370 (patch) | |
tree | 4c88b35c692ede73e01d2024184aa2d802553824 /include | |
parent | 40d29483c0f7f07645c124fdd76be100c11db4e5 (diff) |
PulseAudio support for volume input
Diffstat (limited to 'include')
-rw-r--r-- | include/i3status.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 <yajl/yajl_version.h> #include <unistd.h> #include <string.h> +#include <pthread.h> +#include <stdint.h> #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 |