Mercurial > pidgin
diff libpurple/protocols/myspace/myspace.h @ 17662:7b890c79aabf
Add msim_markup_to_html() to convert MySpaceIM-style markup to Purple-compatible
HTML, on incoming messages. So far, the <f> tag is supported, with font face,
size, and bold/italic/underline decoration.
Also add msim_test_xml(), containing experiments in using xmlnode to parse
MySpaceIM markup.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Mon, 25 Jun 2007 04:11:06 +0000 |
parents | cbda7f26d27d |
children | 5c2720824798 |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.h Sun Jun 24 19:32:45 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Mon Jun 25 04:11:06 2007 +0000 @@ -44,7 +44,7 @@ #include "cipher.h" /* for SHA-1 */ #include "util.h" /* for base64 */ #include "debug.h" /* for purple_debug_info */ - +#include "xmlnode.h" /* MySpaceIM includes */ #include "message.h" @@ -182,6 +182,7 @@ void msim_unrecognized(MsimSession *session, MsimMessage *msg, gchar *note); +gchar *msim_markup_to_html(const gchar *raw); int msim_incoming_im(MsimSession *session, MsimMessage *msg); int msim_incoming_action(MsimSession *session, MsimMessage *msg); @@ -234,9 +235,12 @@ void msim_tooltip_text(PurpleBuddy *buddy, PurpleNotifyUserInfo *user_info, gboolean full); -void msim_test_all(void); +#ifdef MSIM_SELF_TEST +void msim_test_all(void) __attribute__((__noreturn__)); +int msim_test_xml(void); int msim_test_msg(void); int msim_test_escaping(void); +#endif void init_plugin(PurplePlugin *plugin);