Mercurial > pidgin
comparison src/protocols/msn/msg.h @ 6701:b7e113a59b51
[gaim-migrate @ 7227]
Updated to MSN Protocol 9.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 02 Sep 2003 04:32:16 +0000 |
parents | 4f72b611f0ee |
children | 8efafdc38718 |
comparison
equal
deleted
inserted
replaced
6700:57161e3abbb5 | 6701:b7e113a59b51 |
---|---|
2 * @file msg.h Message functions | 2 * @file msg.h Message functions |
3 * | 3 * |
4 * gaim | 4 * gaim |
5 * | 5 * |
6 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | 6 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> |
7 * | 7 * |
8 * This program is free software; you can redistribute it and/or modify | 8 * This program is free software; you can redistribute it and/or modify |
9 * it under the terms of the GNU General Public License as published by | 9 * it under the terms of the GNU General Public License as published by |
10 * the Free Software Foundation; either version 2 of the License, or | 10 * the Free Software Foundation; either version 2 of the License, or |
11 * (at your option) any later version. | 11 * (at your option) any later version. |
12 * | 12 * |
22 #ifndef _MSN_MSG_H_ | 22 #ifndef _MSN_MSG_H_ |
23 #define _MSN_MSG_H_ | 23 #define _MSN_MSG_H_ |
24 | 24 |
25 typedef struct _MsnMessage MsnMessage; | 25 typedef struct _MsnMessage MsnMessage; |
26 | 26 |
27 #include "msnslp.h" | |
27 #include "session.h" | 28 #include "session.h" |
28 #include "user.h" | 29 #include "user.h" |
29 | 30 |
30 /** | 31 /** |
31 * A message. | 32 * A message. |
32 */ | 33 */ |
33 struct _MsnMessage | 34 struct _MsnMessage |
34 { | 35 { |
35 size_t ref_count; /**< The reference count. */ | 36 size_t ref_count; /**< The reference count. */ |
36 | 37 |
38 gboolean msnslp_message; | |
39 | |
37 MsnUser *sender; | 40 MsnUser *sender; |
38 MsnUser *receiver; | 41 MsnUser *receiver; |
39 | 42 |
40 unsigned int tid; | 43 unsigned int tid; |
41 char flag; | 44 char flag; |
46 | 49 |
47 char *content_type; | 50 char *content_type; |
48 char *charset; | 51 char *charset; |
49 char *body; | 52 char *body; |
50 | 53 |
54 MsnSlpHeader msnslp_header; | |
55 MsnSlpFooter msnslp_footer; | |
56 | |
51 GHashTable *attr_table; | 57 GHashTable *attr_table; |
52 GList *attr_list; | 58 GList *attr_list; |
53 }; | 59 }; |
54 | 60 |
61 #define MSN_MESSAGE(msg) ((MsnMessage *)(msg)) | |
62 | |
55 /** | 63 /** |
56 * Creates a new, empty message. | 64 * Creates a new, empty message. |
57 * | 65 * |
58 * @return A new message. | 66 * @return A new message. |
59 */ | 67 */ |
69 */ | 77 */ |
70 MsnMessage *msn_message_new_from_str(MsnSession *session, const char *str); | 78 MsnMessage *msn_message_new_from_str(MsnSession *session, const char *str); |
71 | 79 |
72 /** | 80 /** |
73 * Destroys a message. | 81 * Destroys a message. |
82 * | |
83 * @param msg The message to destroy. | |
74 */ | 84 */ |
75 void msn_message_destroy(MsnMessage *msg); | 85 void msn_message_destroy(MsnMessage *msg); |
76 | 86 |
77 /** | 87 /** |
78 * Increments the reference count on a message. | 88 * Increments the reference count on a message. |