diff options
author | Ross Burton <ross.burton@intel.com> | 2012-12-02 10:15:22 +0000 |
---|---|---|
committer | Ross Burton <ross.burton@intel.com> | 2012-12-02 10:15:22 +0000 |
commit | f645ce5f7d3b6e7306f58fa5c8f31ee4d533cd9b (patch) | |
tree | b382e7146dc4eb726d33d88e130df346e6cfe353 | |
parent | b97a024809085398c85c409e32a7fb99fda11354 (diff) |
oauth: fix typo in method name
-rw-r--r-- | docs/reference/rest/rest-sections.txt | 2 | ||||
-rw-r--r-- | rest/oauth-proxy-call.c | 11 | ||||
-rw-r--r-- | rest/oauth-proxy-call.h | 3 | ||||
-rw-r--r-- | rest/oauth-proxy.c | 8 |
4 files changed, 18 insertions, 6 deletions
diff --git a/docs/reference/rest/rest-sections.txt b/docs/reference/rest/rest-sections.txt index 1418001..e3efdce 100644 --- a/docs/reference/rest/rest-sections.txt +++ b/docs/reference/rest/rest-sections.txt @@ -133,7 +133,7 @@ rest_proxy_error_quark <FILE>oauth-proxy-call</FILE> <TITLE>OAuthProxyCall</TITLE> OAuthProxyCall -oauth_proxy_call_parse_token_reponse +oauth_proxy_call_parse_token_response <SUBSECTION Standard> OAuthProxyCallClass OAUTH_PROXY_CALL diff --git a/rest/oauth-proxy-call.c b/rest/oauth-proxy-call.c index d8cff95..884c8c2 100644 --- a/rest/oauth-proxy-call.c +++ b/rest/oauth-proxy-call.c @@ -303,7 +303,7 @@ oauth_proxy_call_init (OAuthProxyCall *self) } void -oauth_proxy_call_parse_token_reponse (OAuthProxyCall *call) +oauth_proxy_call_parse_token_response (OAuthProxyCall *call) { OAuthProxyPrivate *priv; GHashTable *form; @@ -325,6 +325,15 @@ oauth_proxy_call_parse_token_reponse (OAuthProxyCall *call) g_hash_table_destroy (form); } +/* + * Stub to keep ABI because this was the original (typo'd) function name. + */ +void +oauth_proxy_call_parse_token_reponse (OAuthProxyCall *call) +{ + oauth_proxy_call_parse_token_response (call); +} + #if BUILD_TESTS /* Test cases from http://wiki.oauth.net/TestCases */ void diff --git a/rest/oauth-proxy-call.h b/rest/oauth-proxy-call.h index 556728e..243aac0 100644 --- a/rest/oauth-proxy-call.h +++ b/rest/oauth-proxy-call.h @@ -62,6 +62,9 @@ typedef struct { GType oauth_proxy_call_get_type (void); +void oauth_proxy_call_parse_token_response (OAuthProxyCall *call); + +G_GNUC_DEPRECATED_FOR(oauth_proxy_call_parse_token_response) void oauth_proxy_call_parse_token_reponse (OAuthProxyCall *call); G_END_DECLS diff --git a/rest/oauth-proxy.c b/rest/oauth-proxy.c index 389742a..597bf8e 100644 --- a/rest/oauth-proxy.c +++ b/rest/oauth-proxy.c @@ -426,7 +426,7 @@ oauth_proxy_request_token (OAuthProxy *proxy, } /* TODO: sanity check response */ - oauth_proxy_call_parse_token_reponse (OAUTH_PROXY_CALL (call)); + oauth_proxy_call_parse_token_response (OAUTH_PROXY_CALL (call)); g_object_unref (call); @@ -446,7 +446,7 @@ request_token_cb (RestProxyCall *call, g_assert (proxy); if (!error) { - oauth_proxy_call_parse_token_reponse (OAUTH_PROXY_CALL (call)); + oauth_proxy_call_parse_token_response (OAUTH_PROXY_CALL (call)); } data->callback (proxy, error, weak_object, data->user_data); @@ -543,7 +543,7 @@ oauth_proxy_access_token (OAuthProxy *proxy, } /* TODO: sanity check response */ - oauth_proxy_call_parse_token_reponse (OAUTH_PROXY_CALL (call)); + oauth_proxy_call_parse_token_response (OAUTH_PROXY_CALL (call)); g_object_unref (call); @@ -563,7 +563,7 @@ access_token_cb (RestProxyCall *call, g_assert (proxy); if (!error) { - oauth_proxy_call_parse_token_reponse (OAUTH_PROXY_CALL (call)); + oauth_proxy_call_parse_token_response (OAUTH_PROXY_CALL (call)); } data->callback (proxy, error, weak_object, data->user_data); |