summaryrefslogtreecommitdiff
path: root/include/i3status.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/i3status.h')
-rw-r--r--include/i3status.h9
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