Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/msg.h @ 31222:320c0852b5cc
Drop slp header and footer from MsnMessage in favor of MsnSlpMessage->header and footer.
author | masca@cpw.pidgin.im |
---|---|
date | Tue, 08 Jun 2010 21:26:39 +0000 |
parents | e5e712cf9f7e |
children | 155db1253acf |
comparison
equal
deleted
inserted
replaced
31221:09f2a7d2ac99 | 31222:320c0852b5cc |
---|---|
56 | 56 |
57 #include "command.h" | 57 #include "command.h" |
58 #include "session.h" | 58 #include "session.h" |
59 #include "transaction.h" | 59 #include "transaction.h" |
60 #include "user.h" | 60 #include "user.h" |
61 #include "p2p.h" | 61 #include "slpmsg.h" |
62 | 62 |
63 typedef void (*MsnMsgCb)(MsnMessage *, void *data); | 63 typedef void (*MsnMsgCb)(MsnMessage *, void *data); |
64 | 64 |
65 #define MSG_BODY_DEM "\r\n\r\n" | 65 #define MSG_BODY_DEM "\r\n\r\n" |
66 #define MSG_LINE_DEM "\r\n" | 66 #define MSG_LINE_DEM "\r\n" |
76 size_t ref_count; /**< The reference count. */ | 76 size_t ref_count; /**< The reference count. */ |
77 | 77 |
78 MsnMsgType type; | 78 MsnMsgType type; |
79 | 79 |
80 gboolean msnslp_message; | 80 gboolean msnslp_message; |
81 MsnSlpMessage *slpmsg; | |
81 | 82 |
82 char *remote_user; | 83 char *remote_user; |
83 char flag; | 84 char flag; |
84 | 85 |
85 char *content_type; | 86 char *content_type; |
87 char *body; | 88 char *body; |
88 gsize body_len; | 89 gsize body_len; |
89 guint total_chunks; /**< How many chunks in this multi-part message */ | 90 guint total_chunks; /**< How many chunks in this multi-part message */ |
90 guint received_chunks; /**< How many chunks we've received so far */ | 91 guint received_chunks; /**< How many chunks we've received so far */ |
91 | 92 |
92 MsnP2PHeader msnslp_header; | |
93 MsnP2PFooter msnslp_footer; | |
94 | |
95 GHashTable *header_table; | 93 GHashTable *header_table; |
96 GList *header_list; | 94 GList *header_list; |
97 | 95 |
98 gboolean ack_ref; /**< A flag that states if this message has | 96 gboolean ack_ref; /**< A flag that states if this message has |
99 been ref'ed for using it in a callback. */ | 97 been ref'ed for using it in a callback. */ |