diff mcabber/mcabber/otr.h @ 2213:0c78d31c753d

Change otr_send() prototype This patch updates otr_send() in order to differenciate original and encrypted messages. It should also fix a memory leak of OTR-encrypted messages.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 05 Nov 2015 19:46:09 +0100
parents 9fb1ccf291cc
children
line wrap: on
line diff
--- a/mcabber/mcabber/otr.h	Thu Nov 05 15:08:47 2015 +0100
+++ b/mcabber/mcabber/otr.h	Thu Nov 05 19:46:09 2015 +0100
@@ -33,8 +33,8 @@
 
 void otr_key        (void);
 
-int  otr_receive    (char **otr_data, const char * buddy, int * free_msg);
-int  otr_send       (char **msg, const char *buddy);
+int   otr_receive   (char **otr_data,  const char * buddy, int * free_msg);
+char *otr_send      (const char * msg, const char * buddy, int * status);
 
 #endif /* HAVE_LIBOTR */