summaryrefslogtreecommitdiff
path: root/wmiistatus.h
diff options
context:
space:
mode:
authorMichael Stapelberg <michael+git@stapelberg.de>2009-01-25 23:18:25 +0100
committerMichael Stapelberg <michael+git@stapelberg.de>2009-01-25 23:18:25 +0100
commitbbd9e7f85d2ac1d88ccb7e847c534abae36bc46a (patch)
tree63214d29a6b517505a23a6d1a98f3c4b8858b640 /wmiistatus.h
parent2abe135288dfdd0de5bf0239005d5930f092feca (diff)
Move configuration file parsing into wmiistatus.c, saves a lot of hassle/SLOC/files
Diffstat (limited to 'wmiistatus.h')
-rw-r--r--wmiistatus.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/wmiistatus.h b/wmiistatus.h
index e4a057c..2d6ce81 100644
--- a/wmiistatus.h
+++ b/wmiistatus.h
@@ -1,18 +1,4 @@
#define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0)
typedef enum { CS_DISCHARGING, CS_CHARGING, CS_FULL } charging_status_t;
-
-#ifdef _IS_WMIISTATUS_C
-static char *concat(const char *str1, const char *str2);
-static void cleanup_rbar_dir(void);
-static void write_to_statusbar(const char *name, const char *message);
-static void write_error_to_statusbar(const char *message);
-static char *skip_character(char *input, char character, int amount);
-static char *get_battery_info(void);
-static char *get_wireless_info(void);
-static const char *get_ip_address(const char *interface);
-static char *get_eth_info(void);
-static bool process_runs(const char *path);
-#endif
-
-void die(const char *fmt, ...);
+enum { ORDER_RUN, ORDER_WLAN, ORDER_ETH, ORDER_BATTERY, ORDER_LOAD, ORDER_TIME, MAX_ORDER };