summaryrefslogtreecommitdiff
path: root/i3status.h
diff options
context:
space:
mode:
Diffstat (limited to 'i3status.h')
-rw-r--r--i3status.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/i3status.h b/i3status.h
new file mode 100644
index 0000000..2d6ce81
--- /dev/null
+++ b/i3status.h
@@ -0,0 +1,4 @@
+#define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0)
+
+typedef enum { CS_DISCHARGING, CS_CHARGING, CS_FULL } charging_status_t;
+enum { ORDER_RUN, ORDER_WLAN, ORDER_ETH, ORDER_BATTERY, ORDER_LOAD, ORDER_TIME, MAX_ORDER };