mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Whitespace formatting
This commit is contained in:
parent
a607b29d4a
commit
2786b7cb26
@ -3,29 +3,27 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
//#include "ui/window.h"
|
|
||||||
#define BUFF_SIZE 1000
|
#define BUFF_SIZE 1000
|
||||||
|
|
||||||
typedef struct prof_buff_entry_t {
|
typedef struct prof_buff_entry_t {
|
||||||
char show_char;
|
char show_char;
|
||||||
char *date_fmt;
|
char *date_fmt;
|
||||||
int flags;
|
int flags;
|
||||||
int attrs;
|
int attrs;
|
||||||
char *from;
|
char *from;
|
||||||
char *message;
|
char *message;
|
||||||
} ProfBuffEntry;
|
} ProfBuffEntry;
|
||||||
|
|
||||||
typedef struct prof_buff_t {
|
typedef struct prof_buff_t {
|
||||||
ProfBuffEntry entry[BUFF_SIZE];
|
ProfBuffEntry entry[BUFF_SIZE];
|
||||||
int wrap;
|
int wrap;
|
||||||
int current;
|
int current;
|
||||||
} ProfBuff;
|
} ProfBuff;
|
||||||
|
|
||||||
|
|
||||||
ProfBuff* buffer_create();
|
ProfBuff* buffer_create();
|
||||||
void buffer_free(ProfBuff* buffer);
|
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, const char * const date_fmt, int flags, int attrs, const char * const from, const char * const message);
|
||||||
int buffer_size(ProfBuff* buffer);
|
int buffer_size(ProfBuff* buffer);
|
||||||
int buffer_yield(ProfBuff* buffer, int line, ProfBuffEntry** list);
|
int buffer_yield(ProfBuff* buffer, int line, ProfBuffEntry** list);
|
||||||
ProfBuffEntry buffer_yield_entry(ProfBuff* buffer, int entry);
|
ProfBuffEntry buffer_yield_entry(ProfBuff* buffer, int entry);
|
||||||
#endif
|
#endif
|
Loading…
x
Reference in New Issue
Block a user