Mercurial > pidgin
comparison src/protocols/oscar/family_odir.c @ 13239:f260d319bbbc
[gaim-migrate @ 15605]
Renaming a bunch of structs and typedefs to use the same naming
scheme as the rest of Gaim
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 12 Feb 2006 16:02:05 +0000 |
parents | f2431a7e33aa |
children | 87a7c3077c19 |
comparison
equal
deleted
inserted
replaced
13238:1e855032d7bc | 13239:f260d319bbbc |
---|---|
36 * @param sess The oscar session. | 36 * @param sess The oscar session. |
37 * @param region Should be "us-ascii" unless you know what you're doing. | 37 * @param region Should be "us-ascii" unless you know what you're doing. |
38 * @param email The email address you want to search for. | 38 * @param email The email address you want to search for. |
39 * @return Return 0 if no errors, otherwise return the error number. | 39 * @return Return 0 if no errors, otherwise return the error number. |
40 */ | 40 */ |
41 faim_export int aim_odir_email(aim_session_t *sess, const char *region, const char *email) | 41 faim_export int aim_odir_email(OscarSession *sess, const char *region, const char *email) |
42 { | 42 { |
43 aim_conn_t *conn; | 43 OscarConnection *conn; |
44 aim_frame_t *fr; | 44 FlapFrame *fr; |
45 aim_snacid_t snacid; | 45 aim_snacid_t snacid; |
46 aim_tlvlist_t *tl = NULL; | 46 aim_tlvlist_t *tl = NULL; |
47 | 47 |
48 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x000f)) || !region || !email) | 48 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x000f)) || !region || !email) |
49 return -EINVAL; | 49 return -EINVAL; |
85 * @param country The country where the person you want to search for resides. | 85 * @param country The country where the person you want to search for resides. |
86 * @param zip The zip code where the person you want to search for resides. | 86 * @param zip The zip code where the person you want to search for resides. |
87 * @param address The street address where the person you want to seach for resides. | 87 * @param address The street address where the person you want to seach for resides. |
88 * @return Return 0 if no errors, otherwise return the error number. | 88 * @return Return 0 if no errors, otherwise return the error number. |
89 */ | 89 */ |
90 faim_export int aim_odir_name(aim_session_t *sess, const char *region, const char *first, const char *middle, const char *last, const char *maiden, const char *nick, const char *city, const char *state, const char *country, const char *zip, const char *address) | 90 faim_export int aim_odir_name(OscarSession *sess, const char *region, const char *first, const char *middle, const char *last, const char *maiden, const char *nick, const char *city, const char *state, const char *country, const char *zip, const char *address) |
91 { | 91 { |
92 aim_conn_t *conn; | 92 OscarConnection *conn; |
93 aim_frame_t *fr; | 93 FlapFrame *fr; |
94 aim_snacid_t snacid; | 94 aim_snacid_t snacid; |
95 aim_tlvlist_t *tl = NULL; | 95 aim_tlvlist_t *tl = NULL; |
96 | 96 |
97 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x000f)) || !region) | 97 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x000f)) || !region) |
98 return -EINVAL; | 98 return -EINVAL; |
140 * | 140 * |
141 * @param sess The oscar session. | 141 * @param sess The oscar session. |
142 * @param interest1 An interest you want to search for. | 142 * @param interest1 An interest you want to search for. |
143 * @return Return 0 if no errors, otherwise return the error number. | 143 * @return Return 0 if no errors, otherwise return the error number. |
144 */ | 144 */ |
145 faim_export int aim_odir_interest(aim_session_t *sess, const char *region, const char *interest) | 145 faim_export int aim_odir_interest(OscarSession *sess, const char *region, const char *interest) |
146 { | 146 { |
147 aim_conn_t *conn; | 147 OscarConnection *conn; |
148 aim_frame_t *fr; | 148 FlapFrame *fr; |
149 aim_snacid_t snacid; | 149 aim_snacid_t snacid; |
150 aim_tlvlist_t *tl = NULL; | 150 aim_tlvlist_t *tl = NULL; |
151 | 151 |
152 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x000f)) || !region) | 152 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x000f)) || !region) |
153 return -EINVAL; | 153 return -EINVAL; |
174 | 174 |
175 /** | 175 /** |
176 * Subtype 0x0003 - Receive Reply From a User Search | 176 * Subtype 0x0003 - Receive Reply From a User Search |
177 * | 177 * |
178 */ | 178 */ |
179 static int parseresults(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) | 179 static int parseresults(OscarSession *sess, aim_module_t *mod, FlapFrame *rx, aim_modsnac_t *snac, ByteStream *bs) |
180 { | 180 { |
181 int ret = 0; | 181 int ret = 0; |
182 aim_rxcallback_t userfunc; | 182 aim_rxcallback_t userfunc; |
183 guint16 tmp, numresults; | 183 guint16 tmp, numresults; |
184 struct aim_odir *results = NULL; | 184 struct aim_odir *results = NULL; |
238 } | 238 } |
239 | 239 |
240 return ret; | 240 return ret; |
241 } | 241 } |
242 | 242 |
243 static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) | 243 static int snachandler(OscarSession *sess, aim_module_t *mod, FlapFrame *rx, aim_modsnac_t *snac, ByteStream *bs) |
244 { | 244 { |
245 | 245 |
246 if (snac->subtype == 0x0003) | 246 if (snac->subtype == 0x0003) |
247 return parseresults(sess, mod, rx, snac, bs); | 247 return parseresults(sess, mod, rx, snac, bs); |
248 | 248 |
249 return 0; | 249 return 0; |
250 } | 250 } |
251 | 251 |
252 faim_internal int odir_modfirst(aim_session_t *sess, aim_module_t *mod) | 252 faim_internal int odir_modfirst(OscarSession *sess, aim_module_t *mod) |
253 { | 253 { |
254 | 254 |
255 mod->family = 0x000f; | 255 mod->family = 0x000f; |
256 mod->version = 0x0001; | 256 mod->version = 0x0001; |
257 mod->toolid = 0x0010; | 257 mod->toolid = 0x0010; |