diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-04-03 14:45:40 -0700 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-04-03 14:45:40 -0700 |
commit | 9abe0a9d593548c021c1ab8c3548578bdd58ee32 (patch) | |
tree | 4e38a3eb94ad40e0b34838f3664645007535b9f4 /include | |
parent | d00a0e087c79475e199ff33a33a3e73fcd2c0a22 (diff) | |
parent | 1710c206cf82330815b6db82316eb422f8be5370 (diff) |
Merge pull request #7 from Watcom/master
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 54aee13..8fb1b79 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 |