comparison libpurple/protocols/oscar/family_userlookup.c @ 23315: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 ab2322195dab
children 11c54d781835
comparison
equal deleted inserted replaced
23314:afdbbf36499e 23315:9c0ee2491ed1
72 72
73 byte_stream_new(&bs, strlen(address)); 73 byte_stream_new(&bs, strlen(address));
74 74
75 byte_stream_putstr(&bs, address); 75 byte_stream_putstr(&bs, address);
76 76
77 snacid = aim_cachesnac(od, 0x000a, 0x0002, 0x0000, address, strlen(address)+1); 77 snacid = aim_cachesnac(od, SNAC_FAMILY_USERLOOKUP, 0x0002, 0x0000, address, strlen(address)+1);
78 flap_connection_send_snac(od, conn, 0x000a, 0x0002, 0x0000, snacid, &bs); 78 flap_connection_send_snac(od, conn, SNAC_FAMILY_USERLOOKUP, 0x0002, 0x0000, snacid, &bs);
79 79
80 byte_stream_destroy(&bs); 80 byte_stream_destroy(&bs);
81 81
82 return 0; 82 return 0;
83 } 83 }
143 } 143 }
144 144
145 int 145 int
146 search_modfirst(OscarData *od, aim_module_t *mod) 146 search_modfirst(OscarData *od, aim_module_t *mod)
147 { 147 {
148 mod->family = 0x000a; 148 mod->family = SNAC_FAMILY_USERLOOKUP;
149 mod->version = 0x0001; 149 mod->version = 0x0001;
150 mod->toolid = 0x0110; 150 mod->toolid = 0x0110;
151 mod->toolversion = 0x0629; 151 mod->toolversion = 0x0629;
152 mod->flags = 0; 152 mod->flags = 0;
153 strncpy(mod->name, "userlookup", sizeof(mod->name)); 153 strncpy(mod->name, "userlookup", sizeof(mod->name));