From 9b5f6ae5f460c8642286cf174751a317f155d043 Mon Sep 17 00:00:00 2001 From: Dennis Vesterlund Date: Thu, 21 Feb 2019 15:34:32 +0100 Subject: Added function to print content from file (#331) Added a function to print file contents to status bar without newlines. Added tests for print file contents function Added manpage entry for file contents --- include/i3status.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/i3status.h b/include/i3status.h index f3a8941..217376a 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -231,6 +231,7 @@ bool process_runs(const char *path); int volume_pulseaudio(uint32_t sink_idx, const char *sink_name); bool description_pulseaudio(uint32_t sink_idx, const char *sink_name, char buffer[MAX_SINK_DESCRIPTION_LEN]); bool pulse_initialize(void); +void print_file_contents(yajl_gen json_gen, char *buffer, const char *title, const char *path, const char *format, const char *format_bad, const int max_chars); /* socket file descriptor for general purposes */ extern int general_socket; -- cgit v1.2.3