From e9c8197e4ed1f516c41f803b9aa79bcfe7c7a7ab Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <lfleischer@calcurse.org>
Date: Fri, 5 Feb 2016 09:15:01 +0100
Subject: Refactor grep mode

Split io_save_{apts,todo}() into functions that write raw data to a file
and functions that write formatted items to stdout such that one can
easily extend the grep mode for format string support in a follow-up
commit.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
---
 src/calcurse.h | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/calcurse.h')

diff --git a/src/calcurse.h b/src/calcurse.h
index 5e117dc..aafea6b 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -819,7 +819,9 @@ void io_init(const char *, const char *);
 void io_extract_data(char *, const char *, int);
 void io_save_mutex_lock(void);
 void io_save_mutex_unlock(void);
+void io_dump_apts(const char *, const char *, const char *, const char *);
 unsigned io_save_apts(const char *);
+void io_dump_todo(const char *);
 unsigned io_save_todo(const char *);
 unsigned io_save_keys(void);
 void io_save_cal(enum save_display);
-- 
cgit v1.2.3