comparison libpurple/protocols/oscar/family_alert.c @ 23313:9c0ee2491ed1

Replaced family_*'s magic numbers of FLAP families with the constants defined in snactypes.h
author Evan Schoenberg <evan.s@dreskin.net>
date Sat, 07 Jun 2008 18:42:48 +0000
parents 979a81468e19
children 6e1967b0f90b
comparison
equal deleted inserted replaced
23312:afdbbf36499e 23313:9c0ee2491ed1
70 byte_stream_put16(&bs, 0x9f8a); 70 byte_stream_put16(&bs, 0x9f8a);
71 byte_stream_put16(&bs, 0x0060); 71 byte_stream_put16(&bs, 0x0060);
72 byte_stream_put16(&bs, 0xb0ee); 72 byte_stream_put16(&bs, 0xb0ee);
73 byte_stream_put16(&bs, 0x0631); 73 byte_stream_put16(&bs, 0x0631);
74 74
75 snacid = aim_cachesnac(od, 0x0018, 0x0006, 0x0000, NULL, 0); 75 snacid = aim_cachesnac(od, SNAC_FAMILY_ALERT, 0x0006, 0x0000, NULL, 0);
76 flap_connection_send_snac(od, conn, 0x0018, 0x0006, 0x0000, snacid, &bs); 76 flap_connection_send_snac(od, conn, SNAC_FAMILY_ALERT, 0x0006, 0x0000, snacid, &bs);
77 77
78 byte_stream_destroy(&bs); 78 byte_stream_destroy(&bs);
79 79
80 return 0; 80 return 0;
81 } 81 }
186 byte_stream_put32(&bs, 0x04000000); 186 byte_stream_put32(&bs, 0x04000000);
187 byte_stream_put32(&bs, 0x04000000); 187 byte_stream_put32(&bs, 0x04000000);
188 byte_stream_put32(&bs, 0x04000000); 188 byte_stream_put32(&bs, 0x04000000);
189 byte_stream_put32(&bs, 0x00000000); 189 byte_stream_put32(&bs, 0x00000000);
190 190
191 snacid = aim_cachesnac(od, 0x0018, 0x0016, 0x0000, NULL, 0); 191 snacid = aim_cachesnac(od, SNAC_FAMILY_ALERT, 0x0016, 0x0000, NULL, 0);
192 flap_connection_send_snac(od, conn, 0x0018, 0x0006, 0x0000, snacid, &bs); 192 flap_connection_send_snac(od, conn, SNAC_FAMILY_ALERT, 0x0006, 0x0000, snacid, &bs);
193 193
194 byte_stream_destroy(&bs); 194 byte_stream_destroy(&bs);
195 195
196 return 0; 196 return 0;
197 } 197 }
223 } 223 }
224 224
225 int 225 int
226 email_modfirst(OscarData *od, aim_module_t *mod) 226 email_modfirst(OscarData *od, aim_module_t *mod)
227 { 227 {
228 mod->family = 0x0018; 228 mod->family = SNAC_FAMILY_ALERT;
229 mod->version = 0x0001; 229 mod->version = 0x0001;
230 mod->toolid = 0x0010; 230 mod->toolid = 0x0010;
231 mod->toolversion = 0x0629; 231 mod->toolversion = 0x0629;
232 mod->flags = 0; 232 mod->flags = 0;
233 strncpy(mod->name, "alert", sizeof(mod->name)); 233 strncpy(mod->name, "alert", sizeof(mod->name));