]> git.sur5r.net Git - i3/i3status/blob - wmiistatus.h
Strip all non-digit characters from pidbuf
[i3/i3status] / wmiistatus.h
1 #define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0)
2
3 static char output[512];
4 static bool first_push = true;
5
6 typedef enum { CS_DISCHARGING, CS_CHARGING, CS_FULL } charging_status_t;
7
8 static void write_to_statusbar(const char *message);
9 static void die(const char *fmt, ...);
10 static char *skip_character(char *input, char character, int amount);
11 static void push_part(const char *input, const int n);
12 static char *get_battery_info(void);
13 static char *get_wireless_info(void);
14 static char *get_ip_address(const char *interface);
15 static char *get_eth_info(void);
16 static bool process_runs(const char *path);