aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oauth.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oauth.h')
-rw-r--r--lib/oauth.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oauth.h b/lib/oauth.h
index 6b51dc2c..5dfe0ae5 100644
--- a/lib/oauth.h
+++ b/lib/oauth.h
@@ -39,7 +39,7 @@ typedef enum
struct oauth_info
{
oauth_stage_t stage;
- struct oauth_service *sp;
+ const struct oauth_service *sp;
oauth_cb func;
void *data;
@@ -67,7 +67,7 @@ struct oauth_service
Request an initial anonymous token which can be used to construct an
authorization URL for the user. This is passed to the callback function
in a struct oauth_info. */
-struct oauth_info *oauth_request_token( struct oauth_service *sp, oauth_cb func, void *data );
+struct oauth_info *oauth_request_token( const struct oauth_service *sp, oauth_cb func, void *data );
/* http://oauth.net/core/1.0a/#auth_step3 (section 6.3)
The user gets a PIN or so which we now exchange for the final access
@@ -87,4 +87,4 @@ void oauth_info_free( struct oauth_info *info );
/* Convert to and back from strings, for easier saving. */
char *oauth_to_string( struct oauth_info *oi );
-struct oauth_info *oauth_from_string( char *in, struct oauth_service *sp );
+struct oauth_info *oauth_from_string( char *in, const struct oauth_service *sp );