Pass ProfChatWin to otr_on_message_send
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include <libotr/message.h>
|
||||
|
||||
#include "config/accounts.h"
|
||||
#include "ui/window.h"
|
||||
|
||||
typedef enum {
|
||||
PROF_OTRPOLICY_MANUAL,
|
||||
@@ -46,12 +47,6 @@ typedef enum {
|
||||
PROF_OTRPOLICY_ALWAYS
|
||||
} prof_otrpolicy_t;
|
||||
|
||||
typedef enum {
|
||||
PROF_OTRENCFAIL,
|
||||
PROF_OTRPOLICYFAIL,
|
||||
PROF_OTRSUCCESS
|
||||
} prof_otrsendres_t;
|
||||
|
||||
OtrlUserState otr_userstate(void);
|
||||
OtrlMessageAppOps* otr_messageops(void);
|
||||
GHashTable* otr_smpinitators(void);
|
||||
@@ -64,7 +59,7 @@ void otr_poll(void);
|
||||
void otr_on_connect(ProfAccount *account);
|
||||
|
||||
void otr_on_message_recv(const char * const barejid, const char * const resource, const char * const message);
|
||||
prof_otrsendres_t otr_on_message_send(const char * const barejid, const char * const message);
|
||||
void otr_on_message_send(ProfChatWin *chatwin, const char * const message);
|
||||
|
||||
void otr_keygen(ProfAccount *account);
|
||||
|
||||
@@ -94,6 +89,4 @@ void otr_free_message(char *message);
|
||||
|
||||
prof_otrpolicy_t otr_get_policy(const char * const recipient);
|
||||
|
||||
char* otr_senderror_str(prof_otrsendres_t res);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user