about summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-10 19:40:13 -0500
committerJune McEnroe <june@causal.agency>2020-02-10 19:40:13 -0500
commitb59431bb15ec74f05119a7c710a1f6a21e702bad (patch)
treeaa80af87cf2af090dc8d243a80577d8bd5b2106c /chat.h
parentShow heat and other unread in title (diff)
downloadcatgirl-b59431bb15ec74f05119a7c710a1f6a21e702bad.tar.gz
catgirl-b59431bb15ec74f05119a7c710a1f6a21e702bad.zip
Add -s to save and load buffers
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chat.h b/chat.h
index 13319da..47a6163 100644
--- a/chat.h
+++ b/chat.h
@@ -26,6 +26,8 @@
 #define ARRAY_LEN(a) (sizeof(a) / sizeof(a[0]))
 #define BIT(x) x##Bit, x = 1 << x##Bit, x##Bit_ = x##Bit
 
+#define XDG_SUBDIR "catgirl"
+
 typedef unsigned char byte;
 
 int procPipe[2];
@@ -144,6 +146,8 @@ void uiWrite(size_t id, enum Heat heat, const time_t *time, const char *str);
 void uiFormat(
 	size_t id, enum Heat heat, const time_t *time, const char *format, ...
 ) __attribute__((format(printf, 4, 5)));
+void uiLoad(const char *name);
+int uiSave(const char *name);
 
 enum Edit {
 	EditHead,