mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 06:56:21 +00:00
Move ProfMessage and message_is_sent_by_us to xmpp
Not meant for internal usage only.
This commit is contained in:
@@ -37,28 +37,6 @@
|
||||
|
||||
#include "xmpp/xmpp.h"
|
||||
|
||||
typedef enum {
|
||||
PROF_MSG_ENC_PLAIN,
|
||||
PROF_MSG_ENC_OTR,
|
||||
PROF_MSG_ENC_PGP,
|
||||
PROF_MSG_ENC_OMEMO
|
||||
} prof_enc_t;
|
||||
|
||||
typedef struct prof_message_t {
|
||||
Jid *jid;
|
||||
char *id;
|
||||
/* The raw body from xmpp message, either plaintext or OTR encrypted text */
|
||||
char *body;
|
||||
/* The encrypted message as for PGP */
|
||||
char *encrypted;
|
||||
/* The message that will be printed on screen and logs */
|
||||
char *plain;
|
||||
GDateTime *timestamp;
|
||||
prof_enc_t enc;
|
||||
gboolean trusted;
|
||||
gboolean mucuser;
|
||||
} ProfMessage;
|
||||
|
||||
typedef int(*ProfMessageCallback)(xmpp_stanza_t *const stanza, void *const userdata);
|
||||
typedef void(*ProfMessageFreeCallback)(void *userdata);
|
||||
|
||||
@@ -67,6 +45,5 @@ void message_free(ProfMessage *message);
|
||||
void message_handlers_init(void);
|
||||
void message_handlers_clear(void);
|
||||
void message_pubsub_event_handler_add(const char *const node, ProfMessageCallback func, ProfMessageFreeCallback free_func, void *userdata);
|
||||
bool message_is_sent_by_us(ProfMessage *message);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user