mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 04:16:21 +00:00
Apply coding style
Regards https://github.com/profanity-im/profanity/issues/1396
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user