Implemented /time preference

This commit is contained in:
James Booth
2014-11-16 01:11:00 +00:00
parent 40dc8e2c49
commit 8c027a56f9
3 changed files with 51 additions and 24 deletions

View File

@@ -37,9 +37,11 @@
#include "config.h"
#include <glib.h>
typedef struct prof_buff_entry_t {
char show_char;
char *date_fmt;
GDateTime *time;
int flags;
int attrs;
char *from;
@@ -50,7 +52,7 @@ 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);
void buffer_push(ProfBuff buffer, const char show_char, GDateTime *time, 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