2014-06-22 22:44:35 +00:00
|
|
|
#ifndef UI_BUFFER_H
|
|
|
|
#define UI_BUFFER_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
typedef struct prof_buff_entry_t {
|
2014-07-16 21:22:15 +00:00
|
|
|
char show_char;
|
|
|
|
char *date_fmt;
|
|
|
|
int flags;
|
|
|
|
int attrs;
|
|
|
|
char *from;
|
|
|
|
char *message;
|
2014-06-22 22:44:35 +00:00
|
|
|
} ProfBuffEntry;
|
|
|
|
|
2014-07-18 22:07:08 +00:00
|
|
|
typedef struct prof_buff_t *ProfBuff;
|
2014-06-22 22:44:35 +00:00
|
|
|
|
2014-07-18 22:07:08 +00:00
|
|
|
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
|