diff libpurple/protocols/jabber/ibb.h @ 25756:151b4054ce40

Trigger error callbacks when receiving a malformed-ish packet. Clean up a few pieces of code. Use G_GSIZE_FORMAT like KingAnt showed me. Don't crash if an iq packet doesn't contain the seq attribute. Error check g_fopen() Don't unref the PurpleXfer until after we've called some functions with it. Not sure that could ever actually crash it (I didn't bother to run through the ref-counts in my head to see if it would fail). committer: Marcus Lundblad <ml@update.uu.se>
author Paul Aurich <paul@darkrain42.org>
date Tue, 16 Dec 2008 19:16:10 +0000
parents b4ec5481a67a
children 5f9a24d1c25e
line wrap: on
line diff
--- a/libpurple/protocols/jabber/ibb.h	Mon Dec 15 23:13:49 2008 +0000
+++ b/libpurple/protocols/jabber/ibb.h	Tue Dec 16 19:16:10 2008 +0000
@@ -14,12 +14,12 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
  */
  
+#ifndef _PURPLE_JABBER_IBB_H_
+#define _PURPLE_JABBER_IBB_H_
+
 #include "jabber.h"
 #include "iq.h"
 
-#ifndef JABBER_IBB_SESSION
-#define JABBER_IBB_SESSION
-
 #define XEP_0047_NAMESPACE "http://jabber.org/protocol/ibb"
 
 typedef struct _JabberIBBSession JabberIBBSession;
@@ -89,7 +89,7 @@
 void jabber_ibb_session_open(JabberIBBSession *sess);
 void jabber_ibb_session_close(JabberIBBSession *sess);
 void jabber_ibb_session_accept(JabberIBBSession *sess);
-void jabber_ibb_session_send_data(JabberIBBSession *sess, gpointer data,
+void jabber_ibb_session_send_data(JabberIBBSession *sess, gconstpointer data,
 	gsize size);
 
 const gchar *jabber_ibb_session_get_sid(const JabberIBBSession *sess);
@@ -116,4 +116,4 @@
 void jabber_ibb_init(void);
 void jabber_ibb_uninit(void);
 
-#endif /* JABBER_IBB_SESSION */
+#endif /* _PURPLE_JABBER_IBB_H_ */