Add barejid to buffer struct

This commit is contained in:
Michael Vetter
2020-03-09 12:47:43 +01:00
parent 441e31984e
commit 95a16c2486
3 changed files with 16 additions and 15 deletions

View File

@@ -56,6 +56,7 @@ typedef struct prof_buff_entry_t {
// from as it is displayed
// might be nick, jid..
char *display_from;
char *barejid;
char *message;
DeliveryReceipt *receipt;
// message id, in case we have it
@@ -66,8 +67,7 @@ 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 message, DeliveryReceipt *receipt, 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);