comparison src/protocols/sametime/meanwhile/mw_message.h @ 11943:0110fc7c6a8a

[gaim-migrate @ 14234] Bringing things up to date with the last Meanwhile release, 0.5.0 and the last gaim-meanwhile plugin release, 1.2.5 (which should be the last plugin release against oldstatus, if all goes well with HEAD and no major bugs crop up) It builds, so that's a start. The status bits that have been empty since the first import of the sametime stuff are still empty, but I'm going to try and fill those in tomorrow. I've decided to try and start using HEAD actively, to encourage me to get this freaking prpl fully functional. committer: Tailor Script <tailor@pidgin.im>
author Christopher O'Brien <siege@pidgin.im>
date Wed, 02 Nov 2005 03:39:03 +0000
parents 3ef77720e577
children
comparison
equal deleted inserted replaced
11942:a24cfe32961a 11943:0110fc7c6a8a
47 47
48 mwMessage_SET_USER_STATUS = 0x0009, /**< mwMsgSetUserStatus */ 48 mwMessage_SET_USER_STATUS = 0x0009, /**< mwMsgSetUserStatus */
49 mwMessage_SET_PRIVACY_LIST = 0x000b, /**< mwMsgSetPrivacyList */ 49 mwMessage_SET_PRIVACY_LIST = 0x000b, /**< mwMsgSetPrivacyList */
50 mwMessage_SENSE_SERVICE = 0x0011, /**< mwMsgSenseService */ 50 mwMessage_SENSE_SERVICE = 0x0011, /**< mwMsgSenseService */
51 mwMessage_ADMIN = 0x0019, /**< mwMsgAdmin */ 51 mwMessage_ADMIN = 0x0019, /**< mwMsgAdmin */
52 mwMessage_ANNOUNCE = 0x0022, /**< mwMsgAnnounce */
52 }; 53 };
53 54
54 55
55 enum mwMessageOption { 56 enum mwMessageOption {
56 mwMessageOption_ENCRYPT = 0x4000, /**< message data is encrypted */ 57 mwMessageOption_ENCRYPT = 0x4000, /**< message data is encrypted */
92 93
93 struct mwMsgHandshake { 94 struct mwMsgHandshake {
94 struct mwMessage head; 95 struct mwMessage head;
95 guint16 major; /**< client's major version number */ 96 guint16 major; /**< client's major version number */
96 guint16 minor; /**< client's minor version number */ 97 guint16 minor; /**< client's minor version number */
97 guint32 srvrcalc_addr; /**< */ 98 guint32 srvrcalc_addr; /**< 0.0.0.0 */
98 guint16 login_type; /**< @see mwLoginType */ 99 guint16 login_type; /**< @see mwLoginType */
99 guint32 loclcalc_addr; /**< */ 100 guint32 loclcalc_addr; /**< local public IP */
101 guint16 unknown_a; /**< normally 0x0100 */
102 guint32 unknown_b; /**< normally 0x00000000 */
103 char *local_host; /**< name of client host */
100 }; 104 };
101 105
102 106
103 /* 8.4.1.2 HandshakeAck */ 107 /* 8.4.1.2 HandshakeAck */
104 108
105 struct mwMsgHandshakeAck { 109 struct mwMsgHandshakeAck {
106 struct mwMessage head; 110 struct mwMessage head;
107 guint16 major; /**< server's major version number */ 111 guint16 major; /**< server's major version number */
108 guint16 minor; /**< server's minor version number */ 112 guint16 minor; /**< server's minor version number */
109 guint32 srvrcalc_addr; /**< server-calculated address */ 113 guint32 srvrcalc_addr; /**< server-calculated address */
110 guint32 unknown; /**< four bytes of something */ 114 guint32 magic; /**< four bytes of something */
111 struct mwOpaque data; /**< some stuff */ 115 struct mwOpaque data; /**< server's DH public key for auth */
112 }; 116 };
113 117
114 118
115 /* 8.3.7 Authentication Types */ 119 /* 8.3.7 Authentication Types */
116 120
117 enum mwAuthType { 121 enum mwAuthType {
118 mwAuthType_PLAIN = 0x0000, 122 mwAuthType_PLAIN = 0x0000,
119 mwAuthType_TOKEN = 0x0001, 123 mwAuthType_TOKEN = 0x0001,
120 mwAuthType_ENCRYPT = 0x0002, 124 mwAuthType_ENCRYPT = 0x0002, /**< @todo remove for 1.0 */
125 mwAuthType_RC2_40 = 0x0002,
126 mwAuthType_RC2_128 = 0x0004,
121 }; 127 };
122 128
123 129
124 /* 8.4.1.3 Login */ 130 /* 8.4.1.3 Login */
125 131
265 struct mwMessage head; 271 struct mwMessage head;
266 char *text; 272 char *text;
267 }; 273 };
268 274
269 275
276 /* Announce */
277
278 /** An announcement between users */
279 struct mwMsgAnnounce {
280 struct mwMessage head;
281 gboolean sender_present; /**< indicates presence of sender data */
282 struct mwLoginInfo sender; /**< who sent the announcement */
283 guint16 unknown_a; /**< unknown A. Usually 0x00 */
284 gboolean may_reply; /**< replies allowed */
285 char *text; /**< text of message */
286
287 /** list of (char *) indicating recipients. Recipient users are in
288 the format "@U username" and recipient NAB groups are in the
289 format "@G groupname" */
290 GList *recipients;
291 };
292
293
270 #endif 294 #endif
271 295