Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
17661:38030f1a2e56 | 17662:7b890c79aabf |
---|---|
42 #include "accountopt.h" | 42 #include "accountopt.h" |
43 #include "version.h" | 43 #include "version.h" |
44 #include "cipher.h" /* for SHA-1 */ | 44 #include "cipher.h" /* for SHA-1 */ |
45 #include "util.h" /* for base64 */ | 45 #include "util.h" /* for base64 */ |
46 #include "debug.h" /* for purple_debug_info */ | 46 #include "debug.h" /* for purple_debug_info */ |
47 | 47 #include "xmlnode.h" |
48 | 48 |
49 /* MySpaceIM includes */ | 49 /* MySpaceIM includes */ |
50 #include "message.h" | 50 #include "message.h" |
51 | 51 |
52 /* Conditional compilation options */ | 52 /* Conditional compilation options */ |
180 gboolean msim_send_bm(MsimSession *session, const gchar *who, const gchar *text, int type); | 180 gboolean msim_send_bm(MsimSession *session, const gchar *who, const gchar *text, int type); |
181 void msim_send_im_cb(MsimSession *session, MsimMessage *userinfo, gpointer data); | 181 void msim_send_im_cb(MsimSession *session, MsimMessage *userinfo, gpointer data); |
182 | 182 |
183 void msim_unrecognized(MsimSession *session, MsimMessage *msg, gchar *note); | 183 void msim_unrecognized(MsimSession *session, MsimMessage *msg, gchar *note); |
184 | 184 |
185 gchar *msim_markup_to_html(const gchar *raw); | |
185 int msim_incoming_im(MsimSession *session, MsimMessage *msg); | 186 int msim_incoming_im(MsimSession *session, MsimMessage *msg); |
186 int msim_incoming_action(MsimSession *session, MsimMessage *msg); | 187 int msim_incoming_action(MsimSession *session, MsimMessage *msg); |
187 | 188 |
188 unsigned int msim_send_typing(PurpleConnection *gc, const gchar *name, PurpleTypingState state); | 189 unsigned int msim_send_typing(PurpleConnection *gc, const gchar *name, PurpleTypingState state); |
189 void msim_get_info_cb(MsimSession *session, MsimMessage *userinfo, gpointer data); | 190 void msim_get_info_cb(MsimSession *session, MsimMessage *userinfo, gpointer data); |
232 | 233 |
233 char *msim_status_text(PurpleBuddy *buddy); | 234 char *msim_status_text(PurpleBuddy *buddy); |
234 void msim_tooltip_text(PurpleBuddy *buddy, | 235 void msim_tooltip_text(PurpleBuddy *buddy, |
235 PurpleNotifyUserInfo *user_info, gboolean full); | 236 PurpleNotifyUserInfo *user_info, gboolean full); |
236 | 237 |
237 void msim_test_all(void); | 238 #ifdef MSIM_SELF_TEST |
239 void msim_test_all(void) __attribute__((__noreturn__)); | |
240 int msim_test_xml(void); | |
238 int msim_test_msg(void); | 241 int msim_test_msg(void); |
239 int msim_test_escaping(void); | 242 int msim_test_escaping(void); |
243 #endif | |
240 | 244 |
241 void init_plugin(PurplePlugin *plugin); | 245 void init_plugin(PurplePlugin *plugin); |
242 | 246 |
243 | 247 |
244 | 248 |