Mercurial > pidgin.yaz
comparison src/protocols/oscar/aim.h @ 7167:6d3d8f11e765
[gaim-migrate @ 7734]
I, uh, renamed some functions in libfaim. Functions that every file uses.
A lot. So it looks like I did a lot of work, but I didn't. Yeah, in a
typical work I actually only do about 15 minutes of real work.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 05 Oct 2003 23:50:40 +0000 |
parents | e6b01bd8d6cd |
children | 895cd1d03efb |
comparison
equal
deleted
inserted
replaced
7166:e6b01bd8d6cd | 7167:6d3d8f11e765 |
---|---|
1342 faim_export int aim_email_sendcookies(aim_session_t *sess, aim_conn_t *conn); | 1342 faim_export int aim_email_sendcookies(aim_session_t *sess, aim_conn_t *conn); |
1343 faim_export int aim_email_activate(aim_session_t *sess, aim_conn_t *conn); | 1343 faim_export int aim_email_activate(aim_session_t *sess, aim_conn_t *conn); |
1344 | 1344 |
1345 | 1345 |
1346 | 1346 |
1347 #if defined(FAIM_INTERNAL) || defined(FAIM_NEED_TLV) | |
1347 /* tlv.c - TLV handling */ | 1348 /* tlv.c - TLV handling */ |
1348 #if defined(FAIM_INTERNAL) || defined(FAIM_NEED_TLV) | 1349 |
1349 /* Generic TLV structure. */ | 1350 /* TLV structure */ |
1350 typedef struct aim_tlv_s { | 1351 typedef struct aim_tlv_s { |
1351 fu16_t type; | 1352 fu16_t type; |
1352 fu16_t length; | 1353 fu16_t length; |
1353 fu8_t *value; | 1354 fu8_t *value; |
1354 } aim_tlv_t; | 1355 } aim_tlv_t; |
1355 | 1356 |
1356 /* List of above. */ | 1357 /* TLV List structure */ |
1357 typedef struct aim_tlvlist_s { | 1358 typedef struct aim_tlvlist_s { |
1358 aim_tlv_t *tlv; | 1359 aim_tlv_t *tlv; |
1359 struct aim_tlvlist_s *next; | 1360 struct aim_tlvlist_s *next; |
1360 } aim_tlvlist_t; | 1361 } aim_tlvlist_t; |
1361 | 1362 |
1362 /* TLV-handling functions */ | 1363 /* TLV handling functions */ |
1363 | 1364 faim_internal aim_tlv_t *aim_tlv_gettlv(aim_tlvlist_t *list, fu16_t type, const int nth); |
1364 #if 0 | 1365 faim_internal char *aim_tlv_getstr(aim_tlvlist_t *list, const fu16_t type, const int nth); |
1365 /* Very, very raw TLV handling. */ | 1366 faim_internal fu8_t aim_tlv_get8(aim_tlvlist_t *list, const fu16_t type, const int nth); |
1366 faim_internal int aim_puttlv_8(fu8_t *buf, const fu16_t t, const fu8_t v); | 1367 faim_internal fu16_t aim_tlv_get16(aim_tlvlist_t *list, const fu16_t type, const int nth); |
1367 faim_internal int aim_puttlv_16(fu8_t *buf, const fu16_t t, const fu16_t v); | 1368 faim_internal fu32_t aim_tlv_get32(aim_tlvlist_t *list, const fu16_t type, const int nth); |
1368 faim_internal int aim_puttlv_32(fu8_t *buf, const fu16_t t, const fu32_t v); | 1369 |
1369 faim_internal int aim_puttlv_raw(fu8_t *buf, const fu16_t t, const fu16_t l, const fu8_t *v); | 1370 /* TLV list handling functions */ |
1370 #endif | 1371 faim_internal aim_tlvlist_t *aim_tlvlist_read(aim_bstream_t *bs); |
1371 | 1372 faim_internal aim_tlvlist_t *aim_tlvlist_readnum(aim_bstream_t *bs, fu16_t num); |
1372 /* TLV list handling. */ | 1373 faim_internal aim_tlvlist_t *aim_tlvlist_readlen(aim_bstream_t *bs, fu16_t len); |
1373 faim_internal aim_tlvlist_t *aim_readtlvchain(aim_bstream_t *bs); | |
1374 faim_internal aim_tlvlist_t *aim_readtlvchain_num(aim_bstream_t *bs, fu16_t num); | |
1375 faim_internal aim_tlvlist_t *aim_readtlvchain_len(aim_bstream_t *bs, fu16_t len); | |
1376 faim_internal aim_tlvlist_t *aim_tlvlist_copy(aim_tlvlist_t *orig); | 1374 faim_internal aim_tlvlist_t *aim_tlvlist_copy(aim_tlvlist_t *orig); |
1377 faim_internal int aim_counttlvchain(aim_tlvlist_t **list); | 1375 |
1378 faim_internal int aim_sizetlvchain(aim_tlvlist_t **list); | 1376 faim_internal int aim_tlvlist_count(aim_tlvlist_t **list); |
1377 faim_internal int aim_tlvlist_size(aim_tlvlist_t **list); | |
1379 faim_internal int aim_tlvlist_cmp(aim_tlvlist_t *one, aim_tlvlist_t *two); | 1378 faim_internal int aim_tlvlist_cmp(aim_tlvlist_t *one, aim_tlvlist_t *two); |
1380 faim_internal int aim_writetlvchain(aim_bstream_t *bs, aim_tlvlist_t **list); | 1379 faim_internal int aim_tlvlist_write(aim_bstream_t *bs, aim_tlvlist_t **list); |
1381 faim_internal void aim_freetlvchain(aim_tlvlist_t **list); | 1380 faim_internal void aim_tlvlist_free(aim_tlvlist_t **list); |
1382 | 1381 |
1383 faim_internal aim_tlv_t *aim_gettlv(aim_tlvlist_t *list, fu16_t type, const int nth); | 1382 faim_internal int aim_tlvlist_add_raw(aim_tlvlist_t **list, const fu16_t type, const fu16_t length, const fu8_t *value); |
1384 faim_internal char *aim_gettlv_str(aim_tlvlist_t *list, const fu16_t type, const int nth); | 1383 faim_internal int aim_tlvlist_add_noval(aim_tlvlist_t **list, const fu16_t type); |
1385 faim_internal fu8_t aim_gettlv8(aim_tlvlist_t *list, const fu16_t type, const int nth); | 1384 faim_internal int aim_tlvlist_add_8(aim_tlvlist_t **list, const fu16_t type, const fu8_t value); |
1386 faim_internal fu16_t aim_gettlv16(aim_tlvlist_t *list, const fu16_t type, const int nth); | 1385 faim_internal int aim_tlvlist_add_16(aim_tlvlist_t **list, const fu16_t type, const fu16_t value); |
1387 faim_internal fu32_t aim_gettlv32(aim_tlvlist_t *list, const fu16_t type, const int nth); | 1386 faim_internal int aim_tlvlist_add_32(aim_tlvlist_t **list, const fu16_t type, const fu32_t value); |
1388 | 1387 faim_internal int aim_tlvlist_add_caps(aim_tlvlist_t **list, const fu16_t type, const fu32_t caps); |
1389 faim_internal int aim_addtlvtochain_raw(aim_tlvlist_t **list, const fu16_t type, const fu16_t length, const fu8_t *value); | 1388 faim_internal int aim_tlvlist_add_userinfo(aim_tlvlist_t **list, fu16_t type, aim_userinfo_t *userinfo); |
1390 faim_internal int aim_addtlvtochain_noval(aim_tlvlist_t **list, const fu16_t type); | 1389 faim_internal int aim_tlvlist_add_frozentlvlist(aim_tlvlist_t **list, fu16_t type, aim_tlvlist_t **tl); |
1391 faim_internal int aim_addtlvtochain8(aim_tlvlist_t **list, const fu16_t type, const fu8_t value); | |
1392 faim_internal int aim_addtlvtochain16(aim_tlvlist_t **list, const fu16_t type, const fu16_t value); | |
1393 faim_internal int aim_addtlvtochain32(aim_tlvlist_t **list, const fu16_t type, const fu32_t value); | |
1394 faim_internal int aim_addtlvtochain_caps(aim_tlvlist_t **list, const fu16_t type, const fu32_t caps); | |
1395 faim_internal int aim_addtlvtochain_userinfo(aim_tlvlist_t **list, fu16_t type, aim_userinfo_t *ui); | |
1396 faim_internal int aim_addtlvtochain_frozentlvlist(aim_tlvlist_t **list, fu16_t type, aim_tlvlist_t **tl); | |
1397 | 1390 |
1398 faim_internal int aim_tlvlist_replace_raw(aim_tlvlist_t **list, const fu16_t type, const fu16_t lenth, const fu8_t *value); | 1391 faim_internal int aim_tlvlist_replace_raw(aim_tlvlist_t **list, const fu16_t type, const fu16_t lenth, const fu8_t *value); |
1399 faim_internal int aim_tlvlist_replace_noval(aim_tlvlist_t **list, const fu16_t type); | 1392 faim_internal int aim_tlvlist_replace_noval(aim_tlvlist_t **list, const fu16_t type); |
1400 faim_internal int aim_tlvlist_replace_8(aim_tlvlist_t **list, const fu16_t type, const fu8_t value); | 1393 faim_internal int aim_tlvlist_replace_8(aim_tlvlist_t **list, const fu16_t type, const fu8_t value); |
1401 faim_internal int aim_tlvlist_replace_16(aim_tlvlist_t **list, const fu16_t type, const fu16_t value); | 1394 faim_internal int aim_tlvlist_replace_16(aim_tlvlist_t **list, const fu16_t type, const fu16_t value); |