Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/msg.h @ 31132:33b4ae796648
Rename "attribute" to "header" in a bunch of places. The SLP protocol
is fashioned after HTTP. Well, more accurately after SIP. And these
are generally referred to as headers pretty much everywhere.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 08 Feb 2010 07:41:15 +0000 |
parents | 462cb893521b |
children | 35771ce2db52 |
comparison
equal
deleted
inserted
replaced
31131:6376fc7a092e | 31132:33b4ae796648 |
---|---|
107 guint received_chunks; /**< How many chunks we've received so far */ | 107 guint received_chunks; /**< How many chunks we've received so far */ |
108 | 108 |
109 MsnSlpHeader msnslp_header; | 109 MsnSlpHeader msnslp_header; |
110 MsnSlpFooter msnslp_footer; | 110 MsnSlpFooter msnslp_footer; |
111 | 111 |
112 GHashTable *attr_table; | 112 GHashTable *header_table; |
113 GList *attr_list; | 113 GList *header_list; |
114 | 114 |
115 gboolean ack_ref; /**< A flag that states if this message has | 115 gboolean ack_ref; /**< A flag that states if this message has |
116 been ref'ed for using it in a callback. */ | 116 been ref'ed for using it in a callback. */ |
117 | 117 |
118 MsnCommand *cmd; | 118 MsnCommand *cmd; |
293 * @return The charset. | 293 * @return The charset. |
294 */ | 294 */ |
295 const char *msn_message_get_charset(const MsnMessage *msg); | 295 const char *msn_message_get_charset(const MsnMessage *msg); |
296 | 296 |
297 /** | 297 /** |
298 * Sets an attribute in a message. | 298 * Sets a header in a message. |
299 * | 299 * |
300 * @param msg The message. | 300 * @param msg The message. |
301 * @param attr The attribute name. | 301 * @param header The header name. |
302 * @param value The attribute value. | 302 * @param value The header value. |
303 */ | 303 */ |
304 void msn_message_set_attr(MsnMessage *msg, const char *attr, | 304 void msn_message_set_header(MsnMessage *msg, const char *name, |
305 const char *value); | 305 const char *value); |
306 | 306 |
307 /** | 307 /** |
308 * Returns an attribute from a message. | 308 * Returns the value of a header from a message. |
309 * | 309 * |
310 * @param msg The message. | 310 * @param msg The message. |
311 * @param attr The attribute. | 311 * @param header The header value. |
312 * | 312 * |
313 * @return The value, or @c NULL if not found. | 313 * @return The value, or @c NULL if not found. |
314 */ | 314 */ |
315 const char *msn_message_get_attr(const MsnMessage *msg, const char *attr); | 315 const char *msn_message_get_header_value(const MsnMessage *msg, const char *name); |
316 | 316 |
317 /** | 317 /** |
318 * Parses the body and returns it in the form of a hashtable. | 318 * Parses the body and returns it in the form of a hashtable. |
319 * | 319 * |
320 * @param msg The message. | 320 * @param msg The message. |