Mercurial > pidgin
diff libpurple/protocols/myspace/message.h @ 17269:57bde8784308
(Plugin loads, but cannot do anything useful)
Forward-declare _MsimSession structure and remove session.h.
This now allows the plugin to load correctly by Pidgin, as it finds the
purple_init_plugin symbol. Previous revision could be loaded because this
symbol could not be found.
Conversion to use MsimMessage for receiving messages is incomplete, and
therefore this plugin cannot be used for anything useful (login fails with
"Unparseable message" from server.)
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Fri, 01 Jun 2007 04:47:25 +0000 |
parents | 793301c04e3a |
children | b9c0a8bb94b9 |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.h Thu May 31 06:09:46 2007 +0000 +++ b/libpurple/protocols/myspace/message.h Fri Jun 01 04:47:25 2007 +0000 @@ -24,8 +24,6 @@ #include <glib.h> -#include "session.h" - /* Types */ #define MsimMessage GList /* #define instead of typedef to avoid casting */ typedef struct _MsimMessageElement @@ -51,7 +49,10 @@ gchar *msim_msg_debug_string(MsimMessage *msg); gchar *msim_msg_pack(MsimMessage *msg); -gboolean msim_msg_send(MsimSession *session, MsimMessage *msg); +/* Defined in myspace.h */ +struct _MsimSession; + +gboolean msim_msg_send(struct _MsimSession *session, MsimMessage *msg); MsimMessage *msim_parse(gchar *raw); GHashTable *msim_parse_body(const gchar *body_str);