summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2011-04-21 20:49:22 +0200
committerMichael Stapelberg <michael@stapelberg.de>2011-04-21 20:50:14 +0200
commit4fa8a4e0ab52d5e804e3d85c04281d392c767b22 (patch)
tree5b72d54482ba3512f27fca5e878563185567a38c /include
parent686b8798aa725eb5303d154c193e30766bd00094 (diff)
get time at the beginning of the loop
Diffstat (limited to 'include')
-rw-r--r--include/i3status.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h
index 1bcf86a..501340a 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -5,6 +5,7 @@ enum { O_DZEN2, O_XMOBAR, O_NONE } output_format;
#include <stdbool.h>
#include <confuse.h>
+#include <time.h>
#define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0)
#define max(a, b) ((a) > (b) ? (a) : (b))
@@ -61,7 +62,7 @@ char *endcolor() __attribute__ ((pure));
void print_ipv6_info(const char *format_up, const char *format_down);
void print_disk_info(const char *path, const char *format);
void print_battery_info(int number, const char *format, bool last_full_capacity);
-void print_time(const char *format);
+void print_time(const char *format, struct tm *current_tm);
void print_ddate(const char *format);
const char *get_ip_addr();
void print_wireless_info(const char *interface, const char *format_up, const char *format_down);