mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Applied coding style to src/ui/buffer.h src/ui/buffer.c
This commit is contained in:
parent
0017098400
commit
559ff72cf5
@ -58,7 +58,7 @@ struct prof_buff_t {
|
|||||||
static void _free_entry(ProfBuffEntry *entry);
|
static void _free_entry(ProfBuffEntry *entry);
|
||||||
|
|
||||||
ProfBuff
|
ProfBuff
|
||||||
buffer_create()
|
buffer_create(void)
|
||||||
{
|
{
|
||||||
ProfBuff new_buff = malloc(sizeof(struct prof_buff_t));
|
ProfBuff new_buff = malloc(sizeof(struct prof_buff_t));
|
||||||
new_buff->entries = NULL;
|
new_buff->entries = NULL;
|
||||||
@ -81,7 +81,7 @@ buffer_free(ProfBuff buffer)
|
|||||||
|
|
||||||
void
|
void
|
||||||
buffer_push(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *time,
|
buffer_push(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *time,
|
||||||
int flags, theme_item_t theme_item, const char * const from, const char * const message, DeliveryReceipt *receipt)
|
int flags, theme_item_t theme_item, const char *const from, const char *const message, DeliveryReceipt *receipt)
|
||||||
{
|
{
|
||||||
ProfBuffEntry *e = malloc(sizeof(struct prof_buff_entry_t));
|
ProfBuffEntry *e = malloc(sizeof(struct prof_buff_entry_t));
|
||||||
e->show_char = show_char;
|
e->show_char = show_char;
|
||||||
@ -102,7 +102,7 @@ buffer_push(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *ti
|
|||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
buffer_mark_received(ProfBuff buffer, const char * const id)
|
buffer_mark_received(ProfBuff buffer, const char *const id)
|
||||||
{
|
{
|
||||||
GSList *entries = buffer->entries;
|
GSList *entries = buffer->entries;
|
||||||
while (entries) {
|
while (entries) {
|
||||||
|
@ -61,10 +61,9 @@ typedef struct prof_buff_t *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, int pad_indent, GDateTime *time, int flags, theme_item_t theme_item,
|
void buffer_push(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *time, int flags, theme_item_t theme_item,
|
||||||
const char * const from, const char * const message, DeliveryReceipt *receipt);
|
const char *const from, const char *const message, DeliveryReceipt *receipt);
|
||||||
int buffer_size(ProfBuff buffer);
|
int buffer_size(ProfBuff buffer);
|
||||||
ProfBuffEntry* buffer_yield_entry(ProfBuff buffer, int entry);
|
ProfBuffEntry* buffer_yield_entry(ProfBuff buffer, int entry);
|
||||||
gboolean buffer_mark_received(ProfBuff buffer, const char * const id);
|
gboolean buffer_mark_received(ProfBuff buffer, const char *const id);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user