Mercurial > pidgin
comparison src/protocols/msn/msg.h @ 10225:ecf3ce2e2ab1
[gaim-migrate @ 11357]
This is mostly a patch from Felipe Contreras that eliminates MSN switchboard
errors and fixes MSN buddy icon syncronization, with some tweaks by me.
Thank Felipe if it works, blame me if something broke.
I also fixed a couple of text markup escaping things, fixed a glib warning that
was bugging me, fix a rare SILC crash, and make gtkstatusselector.c compile
(but do nothing) with gtk < 2.4
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Sun, 21 Nov 2004 17:48:09 +0000 |
| parents | ab6636c5a136 |
| children | 2e01c503aa4f |
comparison
equal
deleted
inserted
replaced
| 10224:ef7f9e69f03e | 10225:ecf3ce2e2ab1 |
|---|---|
| 30 #include "user.h" | 30 #include "user.h" |
| 31 | 31 |
| 32 #include "command.h" | 32 #include "command.h" |
| 33 #include "transaction.h" | 33 #include "transaction.h" |
| 34 | 34 |
| 35 typedef void (*MsnCb)(void *data); | |
| 36 | |
| 37 /* | |
| 35 typedef enum | 38 typedef enum |
| 36 { | 39 { |
| 37 MSN_MSG_NORMAL, | 40 MSN_MSG_NORMAL, |
| 38 MSN_MSG_SLP_SB, | 41 MSN_MSG_SLP_SB, |
| 39 MSN_MSG_SLP_DC | 42 MSN_MSG_SLP_DC |
| 43 | |
| 44 } MsnMsgType; | |
| 45 */ | |
| 46 | |
| 47 typedef enum | |
| 48 { | |
| 49 MSN_MSG_UNKNOWN, | |
| 50 MSN_MSG_TEXT, | |
| 51 MSN_MSG_TYPING, | |
| 52 MSN_MSG_CAPS, | |
| 53 MSN_MSG_SLP | |
| 40 | 54 |
| 41 } MsnMsgType; | 55 } MsnMsgType; |
| 42 | 56 |
| 43 typedef struct | 57 typedef struct |
| 44 { | 58 { |
| 86 GList *attr_list; | 100 GList *attr_list; |
| 87 | 101 |
| 88 MsnCommand *cmd; | 102 MsnCommand *cmd; |
| 89 MsnTransaction *trans; | 103 MsnTransaction *trans; |
| 90 | 104 |
| 91 MsnTransCb ack_cb; | 105 MsnCb ack_cb; |
| 92 void *ack_data; | 106 void *ack_data; |
| 93 }; | 107 }; |
| 94 | 108 |
| 95 /** | 109 /** |
| 96 * Creates a new, empty message. | 110 * Creates a new, empty message. |
| 97 * | 111 * |
| 98 * @return A new message. | 112 * @return A new message. |
| 99 */ | 113 */ |
| 100 MsnMessage *msn_message_new(void); | 114 MsnMessage *msn_message_new(MsnMsgType type); |
| 101 | 115 |
| 102 /** | 116 /** |
| 103 * Creates a new, empty MSNSLP message. | 117 * Creates a new, empty MSNSLP message. |
| 104 * | 118 * |
| 105 * @return A new MSNSLP message. | 119 * @return A new MSNSLP message. |
| 297 void msn_message_parse_slp_body(MsnMessage *msg, const char *body, | 311 void msn_message_parse_slp_body(MsnMessage *msg, const char *body, |
| 298 size_t len); | 312 size_t len); |
| 299 | 313 |
| 300 char *msn_message_gen_slp_body(MsnMessage *msg, size_t *ret_size); | 314 char *msn_message_gen_slp_body(MsnMessage *msg, size_t *ret_size); |
| 301 | 315 |
| 316 char *msn_message_to_string(MsnMessage *msg); | |
| 302 | 317 |
| 303 #endif /* _MSN_MSG_H_ */ | 318 #endif /* _MSN_MSG_H_ */ |
