Changeset 18dbb20 for lib/oauth.h
- Timestamp:
- 2010-04-27T22:42:07Z (14 years ago)
- Branches:
- master
- Children:
- 0bff877
- Parents:
- ee84bdb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/oauth.h
ree84bdb r18dbb20 25 25 26 26 struct oauth_info; 27 typedef void (*oauth_cb)( struct oauth_info * ); 27 28 /* Callback function called twice during the access token request process. 29 Return FALSE if something broke and the process must be aborted. */ 30 typedef gboolean (*oauth_cb)( struct oauth_info * ); 28 31 29 32 typedef enum … … 53 56 authorization URL for the user. This is passed to the callback function 54 57 in a struct oauth_info. */ 55 void*oauth_request_token( const char *url, oauth_cb func, void *data );58 struct oauth_info *oauth_request_token( const char *url, oauth_cb func, void *data ); 56 59 57 60 /* http://oauth.net/core/1.0a/#auth_step3 (section 6.3) … … 59 62 token. This is passed to the callback function in the same 60 63 struct oauth_info. */ 61 void *oauth_access_token( const char *url, const char *pin, struct oauth_info *st );64 void oauth_access_token( const char *url, const char *pin, struct oauth_info *st ); 62 65 63 66 /* http://oauth.net/core/1.0a/#anchor12 (section 7) … … 67 70 automatically be grabbed from url. */ 68 71 char *oauth_http_header( char *access_token, const char *method, const char *url, char *args ); 72 73 /* Shouldn't normally be required unless the process is aborted by the user. */ 74 void oauth_info_free( struct oauth_info *info );
Note: See TracChangeset
for help on using the changeset viewer.