about summary refs log blame commit diff stats
path: root/src/ui/buffer.h
blob: c9d1ccdc84bad25264bce53fde6f2faad6515324 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12




                   
                                  





                   

                
                                     
 



                                                                                                                                                                
                                                              
      
#ifndef UI_BUFFER_H
#define UI_BUFFER_H

#include "config.h"

typedef struct prof_buff_entry_t {
    char show_char;
    char *date_fmt;
    int flags;
    int attrs;
    char *from;
    char *message;
} ProfBuffEntry;

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