1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Applied coding style to src/ui/buffer.h src/ui/buffer.c

This commit is contained in:
James Booth 2015-10-25 22:50:10 +00:00
parent 0017098400
commit 559ff72cf5
2 changed files with 5 additions and 6 deletions

View File

@ -58,7 +58,7 @@ struct prof_buff_t {
static void _free_entry(ProfBuffEntry *entry);
ProfBuff
buffer_create()
buffer_create(void)
{
ProfBuff new_buff = malloc(sizeof(struct prof_buff_t));
new_buff->entries = NULL;
@ -81,7 +81,7 @@ 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, 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));
e->show_char = show_char;
@ -102,7 +102,7 @@ buffer_push(ProfBuff buffer, const char show_char, int pad_indent, GDateTime *ti
}
gboolean
buffer_mark_received(ProfBuff buffer, const char * const id)
buffer_mark_received(ProfBuff buffer, const char *const id)
{
GSList *entries = buffer->entries;
while (entries) {

View File

@ -61,10 +61,9 @@ typedef struct prof_buff_t *ProfBuff;
ProfBuff buffer_create();
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,
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);
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