Implemented the buffer for windows resizing

This commit is contained in:
Immae
2014-06-29 15:04:23 +02:00
parent dada879347
commit 945d655910
5 changed files with 76 additions and 38 deletions

View File

@@ -8,7 +8,7 @@
typedef struct prof_buff_entry_t {
char show_char;
GTimeVal tstamp;
char *date_fmt;
int flags;
int attrs;
char *from;
@@ -24,6 +24,8 @@ typedef struct prof_buff_t {
ProfBuff* buffer_create();
void buffer_free(ProfBuff* buffer);
void buffer_push(ProfBuff* buffer, const char show_char, GTimeVal *tstamp, int flags, int attrs, const char * const from, const char * const message);
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);
int buffer_yield(ProfBuff* buffer, int line, ProfBuffEntry** list);
ProfBuffEntry buffer_yield_entry(ProfBuff* buffer, int entry);
#endif