[librest] oauth: fix typo in method name
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest] oauth: fix typo in method name
- Date: Sun, 2 Dec 2012 10:15:29 +0000 (UTC)
commit f645ce5f7d3b6e7306f58fa5c8f31ee4d533cd9b
Author: Ross Burton <ross burton intel com>
Date: Sun Dec 2 10:15:22 2012 +0000
oauth: fix typo in method name
docs/reference/rest/rest-sections.txt | 2 +-
rest/oauth-proxy-call.c | 11 ++++++++++-
rest/oauth-proxy-call.h | 3 +++
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]