- Timestamp:
- 2011-03-08T06:24:34Z (14 years ago)
- Branches:
- master
- Children:
- 7add7ec
- Parents:
- 9e9140b
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/oauth.c
r9e9140b r93cc86f 229 229 g_free( info->token ); 230 230 g_free( info->token_secret ); 231 oauth_params_free( &info->params ); 231 232 g_free( info ); 232 233 } … … 354 355 if( req->status_code == 200 ) 355 356 { 356 GSList *params = NULL; 357 358 oauth_params_parse( ¶ms, req->reply_body ); 359 st->token = g_strdup( oauth_params_get( ¶ms, "oauth_token" ) ); 360 st->token_secret = g_strdup( oauth_params_get( ¶ms, "oauth_token_secret" ) ); 361 oauth_params_free( ¶ms ); 357 oauth_params_parse( &st->params, req->reply_body ); 358 st->token = g_strdup( oauth_params_get( &st->params, "oauth_token" ) ); 359 st->token_secret = g_strdup( oauth_params_get( &st->params, "oauth_token_secret" ) ); 362 360 } 363 361 … … 370 368 g_free( st->request_token ); 371 369 st->request_token = NULL; 370 oauth_params_free( &st->params ); 372 371 } 373 372 } -
lib/oauth.h
r9e9140b r93cc86f 52 52 char *token; 53 53 char *token_secret; 54 GSList *params; 54 55 }; 55 56 … … 89 90 char *oauth_to_string( struct oauth_info *oi ); 90 91 struct oauth_info *oauth_from_string( char *in, const struct oauth_service *sp ); 92 93 /* For reading misc. data. */ 94 const char *oauth_params_get( GSList **params, const char *key );
Note: See TracChangeset
for help on using the changeset viewer.