diff options
author | Michael Stapelberg <michael+x200@stapelberg.de> | 2008-10-04 18:42:12 +0200 |
---|---|---|
committer | Michael Stapelberg <michael+x200@stapelberg.de> | 2008-10-04 18:42:12 +0200 |
commit | 65251638ddea3310ed69534191198afa9e9d97ed (patch) | |
tree | 9d62360355b01304ddd386aa8c5c2c2a510592f9 /wmiistatus.h | |
parent | ed49d5983e81afddca44051117dcc7327bdec03d (diff) |
Cleanup
- Add more warning-flags to Makefile and fix warnings
- Create config.h as a central place for paths/names
- Add wmiistatus.h for definitions
Diffstat (limited to 'wmiistatus.h')
-rw-r--r-- | wmiistatus.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wmiistatus.h b/wmiistatus.h new file mode 100644 index 0000000..9556b4f --- /dev/null +++ b/wmiistatus.h @@ -0,0 +1,14 @@ +#define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0) + +static char output[512]; +static bool first_push = true; + +typedef enum { CS_DISCHARGING, CS_CHARGING, CS_FULL } charging_status_t; + +static void write_to_statusbar(const char *message); +static void die(const char *message); +static char *skip_character(char *input, char character, int amount); +static void push_part(const char *input, const int n); +static char *get_battery_info(void); +static char *get_wireless_info(void); +static char *get_eth_info(void); |