Changeset 8203da9
- Timestamp:
- 2010-06-30T22:52:27Z (14 years ago)
- Branches:
- master
- Children:
- 3353b5e, c351434
- Parents:
- bd64716
- Location:
- protocols/twitter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
rbd64716 r8203da9 42 42 struct twitter_xml_list { 43 43 int type; 44 int64_tnext_cursor;44 gint64 next_cursor; 45 45 GSList *list; 46 46 gpointer data; … … 155 155 * Get the friends ids. 156 156 */ 157 void twitter_get_friends_ids(struct im_connection *ic, intnext_cursor)157 void twitter_get_friends_ids(struct im_connection *ic, gint64 next_cursor) 158 158 { 159 159 // Primitive, but hey! It works... 160 160 char* args[2]; 161 161 args[0] = "cursor"; 162 args[1] = g_strdup_printf ("% d",next_cursor);162 args[1] = g_strdup_printf ("%lld", (long long) next_cursor); 163 163 twitter_http(ic, TWITTER_FRIENDS_IDS_URL, twitter_http_get_friends_ids, ic, 0, args, 2); 164 164 … … 419 419 * Get the timeline. 420 420 */ 421 void twitter_get_home_timeline(struct im_connection *ic, intnext_cursor)421 void twitter_get_home_timeline(struct im_connection *ic, gint64 next_cursor) 422 422 { 423 423 struct twitter_data *td = ic->proto_data; … … 425 425 char* args[4]; 426 426 args[0] = "cursor"; 427 args[1] = g_strdup_printf ("% d",next_cursor);427 args[1] = g_strdup_printf ("%lld", (long long) next_cursor); 428 428 if (td->home_timeline_id) { 429 429 args[2] = "since_id"; … … 671 671 * Get the friends. 672 672 */ 673 void twitter_get_statuses_friends(struct im_connection *ic, intnext_cursor)673 void twitter_get_statuses_friends(struct im_connection *ic, gint64 next_cursor) 674 674 { 675 675 char* args[2]; 676 676 args[0] = "cursor"; 677 args[1] = g_strdup_printf ("% d",next_cursor);677 args[1] = g_strdup_printf ("%lld", (long long) next_cursor); 678 678 679 679 twitter_http(ic, TWITTER_SHOW_FRIENDS_URL, twitter_http_get_statuses_friends, ic, 0, args, 2); -
protocols/twitter/twitter_lib.h
rbd64716 r8203da9 76 76 #define TWITTER_BLOCKS_DESTROY_URL "/blocks/destroy/" 77 77 78 void twitter_get_friends_ids(struct im_connection *ic, intnext_cursor);79 void twitter_get_home_timeline(struct im_connection *ic, intnext_cursor);80 void twitter_get_statuses_friends(struct im_connection *ic, intnext_cursor);78 void twitter_get_friends_ids(struct im_connection *ic, gint64 next_cursor); 79 void twitter_get_home_timeline(struct im_connection *ic, gint64 next_cursor); 80 void twitter_get_statuses_friends(struct im_connection *ic, gint64 next_cursor); 81 81 82 82 void twitter_post_status(struct im_connection *ic, char *msg);
Note: See TracChangeset
for help on using the changeset viewer.