summaryrefslogtreecommitdiff
path: root/include/i3status.h
diff options
context:
space:
mode:
authorEmil Mikulic <emikulic@gmail.com>2013-01-14 00:18:38 +1100
committerMichael Stapelberg <michael@stapelberg.de>2013-02-10 17:18:32 +0100
commit2ebe1f37269e9bec23a3f0c2e6be956884c7ab92 (patch)
treef326c0affdec8f9d19167f26e8de4dd92380f187 /include/i3status.h
parent895cbad7a23cfac3b191c711fab052a74c04c0b2 (diff)
Add tztime module to support multiple different timezones.
Diffstat (limited to 'include/i3status.h')
-rw-r--r--include/i3status.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/i3status.h b/include/i3status.h
index 09394bd..01d83d1 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -137,11 +137,14 @@ char *endcolor() __attribute__ ((pure));
/* src/auto_detect_format.c */
char *auto_detect_format();
+/* src/print_time.c */
+void set_timezone(const char *timezone);
+
void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, const char *format_down);
void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const char *format);
void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char *path, const char *format, int low_threshold, char *threshold_type, bool last_full_capacity);
-void print_time(yajl_gen json_gen, char *buffer, const char *format, struct tm *current_tm);
-void print_ddate(yajl_gen json_gen, char *buffer, const char *format, struct tm *current_tm);
+void print_time(yajl_gen json_gen, char *buffer, const char *format, const char *timezone, time_t t);
+void print_ddate(yajl_gen json_gen, char *buffer, const char *format, time_t t);
const char *get_ip_addr();
void print_wireless_info(yajl_gen json_gen, char *buffer, const char *interface, const char *format_up, const char *format_down);
void print_run_watch(yajl_gen json_gen, char *buffer, const char *title, const char *pidfile, const char *format);