Apply coding style

Regards https://github.com/profanity-im/profanity/issues/1396
This commit is contained in:
Michael Vetter
2020-07-07 09:43:28 +02:00
parent 66f9a6b721
commit 9b55f2dec0
214 changed files with 19572 additions and 17582 deletions

View File

@@ -42,36 +42,38 @@
#include "config.h"
#include "config/theme.h"
typedef struct delivery_receipt_t {
typedef struct delivery_receipt_t
{
gboolean received;
} DeliveryReceipt;
typedef struct prof_buff_entry_t {
typedef struct prof_buff_entry_t
{
// pointer because it could be a unicode symbol as well
char *show_char;
char* show_char;
int pad_indent;
GDateTime *time;
GDateTime* time;
int flags;
theme_item_t theme_item;
// from as it is displayed
// might be nick, jid..
char *display_from;
char *from_jid;
char *message;
DeliveryReceipt *receipt;
char* display_from;
char* from_jid;
char* message;
DeliveryReceipt* receipt;
// message id, in case we have it
char *id;
char* id;
} ProfBuffEntry;
typedef struct prof_buff_t *ProfBuff;
typedef struct prof_buff_t* ProfBuff;
ProfBuff buffer_create();
void buffer_free(ProfBuff buffer);
void buffer_append(ProfBuff buffer, const char *show_char, int pad_indent, GDateTime *time, int flags, theme_item_t theme_item, const char *const display_from, const char *const barejid, const char *const message, DeliveryReceipt *receipt, const char *const id);
void buffer_remove_entry_by_id(ProfBuff buffer, const char *const id);
void buffer_append(ProfBuff buffer, const char* show_char, int pad_indent, GDateTime* time, int flags, theme_item_t theme_item, const char* const display_from, const char* const barejid, const char* const message, DeliveryReceipt* receipt, const char* const id);
void buffer_remove_entry_by_id(ProfBuff buffer, const char* const id);
int buffer_size(ProfBuff buffer);
ProfBuffEntry* buffer_get_entry(ProfBuff buffer, int entry);
ProfBuffEntry* buffer_get_entry_by_id(ProfBuff buffer, const char *const id);
gboolean buffer_mark_received(ProfBuff buffer, const char *const id);
ProfBuffEntry* buffer_get_entry_by_id(ProfBuff buffer, const char* const id);
gboolean buffer_mark_received(ProfBuff buffer, const char* const id);
#endif