diff options
| author | Indent <please@skip.me> | 2015-02-19 02:47:20 -0300 | 
|---|---|---|
| committer | dequis <dx@dxzone.com.ar> | 2015-02-20 19:50:54 -0300 | 
| commit | 5ebff60479fc7a9f7f50ac03b124c91d4e6ebe11 (patch) | |
| tree | 9fc0d50cb1f4bc9768d9f00de94eafd876bb55b0 /lib/oauth2.h | |
| parent | af359b4316f9d392c6b752495a1b2ed631576ed8 (diff) | |
Reindent everything to K&R style with tabs
Used uncrustify, with the configuration file in ./doc/uncrustify.cfg
Commit author set to "Indent <please@skip.me>" so that it's easier to
skip while doing git blame.
Diffstat (limited to 'lib/oauth2.h')
| -rw-r--r-- | lib/oauth2.h | 15 | 
1 files changed, 7 insertions, 8 deletions
| diff --git a/lib/oauth2.h b/lib/oauth2.h index b3811f49..4d6abdb1 100644 --- a/lib/oauth2.h +++ b/lib/oauth2.h @@ -24,11 +24,10 @@  /* Implementation mostly based on my experience with writing the previous OAuth     module, and from http://code.google.com/apis/accounts/docs/OAuth2.html . */ -typedef void (*oauth2_token_callback)( gpointer data, const char *atoken, -                                       const char *rtoken, const char *error ); +typedef void (*oauth2_token_callback)(gpointer data, const char *atoken, +                                      const char *rtoken, const char *error); -struct oauth2_service -{ +struct oauth2_service {  	char *auth_url;  	char *token_url;  	char *redirect_url; @@ -42,10 +41,10 @@ struct oauth2_service  /* Generate a URL the user should open in his/her browser to get an     authorization code. */ -char *oauth2_url( const struct oauth2_service *sp ); +char *oauth2_url(const struct oauth2_service *sp);  /* Exchanges an auth code or refresh token for an access token.     auth_type is one of the two OAUTH2_AUTH_.. constants above. */ -int oauth2_access_token( const struct oauth2_service *sp, -                         const char *auth_type, const char *auth, -                         oauth2_token_callback func, gpointer data ); +int oauth2_access_token(const struct oauth2_service *sp, +                        const char *auth_type, const char *auth, +                        oauth2_token_callback func, gpointer data); | 
