about summary refs log tree commit diff stats
path: root/src/ui/buffer.h
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-07-18 23:07:08 +0100
committerJames Booth <boothj5@gmail.com>2014-07-18 23:07:08 +0100
commit1e6b70943a3c4bea2f2e448c52c8056f07a7e456 (patch)
treec2b62dbf1be42d5039988a1beb789d153bea1658 /src/ui/buffer.h
parent2a435cd3decc9493c8f54596b4251e6af94a42be (diff)
downloadprofani-tty-1e6b70943a3c4bea2f2e448c52c8056f07a7e456.tar.gz
Use GSList for buffer entries
Diffstat (limited to 'src/ui/buffer.h')
-rw-r--r--src/ui/buffer.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/ui/buffer.h b/src/ui/buffer.h
index b8828c14..fec46a36 100644
--- a/src/ui/buffer.h
+++ b/src/ui/buffer.h
@@ -14,15 +14,11 @@ typedef struct prof_buff_entry_t {
     char *message;
 } ProfBuffEntry;
 
-typedef struct prof_buff_t {
-    ProfBuffEntry entry[BUFF_SIZE];
-    int wrap;
-    int current;
-} ProfBuff;
+typedef struct prof_buff_t *ProfBuff;
 
-ProfBuff* buffer_create();
-void buffer_free(ProfBuff* buffer);
-void buffer_push(ProfBuff* buffer, const char show_char, const char * const date_fmt, int flags, int attrs, const char * const from, const char * const message);
-int buffer_size(ProfBuff* buffer);
-ProfBuffEntry buffer_yield_entry(ProfBuff* buffer, int entry);
-#endif
\ No newline at end of file
+ProfBuff buffer_create();
+void buffer_free(ProfBuff buffer);
+void buffer_push(ProfBuff buffer, const char show_char, const char * const date_fmt, int flags, int attrs, const char * const from, const char * const message);
+int buffer_size(ProfBuff buffer);
+ProfBuffEntry buffer_yield_entry(ProfBuff buffer, int entry);
+#endif