Changeset bbff22d for protocols/twitter/twitter_lib.c
- Timestamp:
- 2015-10-09T02:41:01Z (9 years ago)
- Branches:
- master
- Children:
- b87e5dc
- Parents:
- c4e61db
- git-author:
- dequis <dx@…> (08-10-15 07:48:06)
- git-committer:
- dequis <dx@…> (09-10-15 02:41:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
rc4e61db rbbff22d 312 312 td = ic->proto_data; 313 313 314 // Parse the data. 315 if (!(parsed = twitter_parse_response(ic, req))) { 316 return; 317 } 318 314 319 txl = g_new0(struct twitter_xml_list, 1); 315 320 txl->list = td->follow_ids; 316 317 // Parse the data.318 if (!(parsed = twitter_parse_response(ic, req))) {319 return;320 }321 321 322 322 twitter_xt_get_friends_id_list(parsed, txl); … … 388 388 } 389 389 390 // Get the user list from the parsed xml feed. 391 if (!(parsed = twitter_parse_response(ic, req))) { 392 return; 393 } 394 390 395 txl = g_new0(struct twitter_xml_list, 1); 391 396 txl->list = NULL; 392 397 393 // Get the user list from the parsed xml feed.394 if (!(parsed = twitter_parse_response(ic, req))) {395 return;396 }397 398 twitter_xt_get_users(parsed, txl); 398 399 json_value_free(parsed); … … 1385 1386 td = ic->proto_data; 1386 1387 1387 txl = g_new0(struct twitter_xml_list, 1);1388 txl->list = NULL;1389 1390 1388 // The root <statuses> node should hold the list of statuses <status> 1391 1389 if (!(parsed = twitter_parse_response(ic, req))) { 1392 1390 goto end; 1393 1391 } 1392 1393 txl = g_new0(struct twitter_xml_list, 1); 1394 txl->list = NULL; 1395 1394 1396 twitter_xt_get_status_list(ic, parsed, txl); 1395 1397 json_value_free(parsed); … … 1424 1426 td = ic->proto_data; 1425 1427 1426 txl = g_new0(struct twitter_xml_list, 1);1427 txl->list = NULL;1428 1429 1428 // The root <statuses> node should hold the list of statuses <status> 1430 1429 if (!(parsed = twitter_parse_response(ic, req))) { 1431 1430 goto end; 1432 1431 } 1432 1433 txl = g_new0(struct twitter_xml_list, 1); 1434 txl->list = NULL; 1435 1433 1436 twitter_xt_get_status_list(ic, parsed, txl); 1434 1437 json_value_free(parsed);
Note: See TracChangeset
for help on using the changeset viewer.