summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-09-02 18:15:08 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2014-09-03 10:23:44 +0200
commit3ec0311b5f38f55784c63925600ff66263c20b9e (patch)
tree0be970f79b9caad66a771632011d51a7daf7bd1a
parent9030b864e234179a4a2b8a583a958639dae2c938 (diff)
downloadlibrest-3ec0311b5f38f55784c63925600ff66263c20b9e.tar.gz
lastfm: Remove direct access to RestProxyCallPrivate
Now that LastFMProxyCall no longer directly modifies RestProxyCall::url, it's trivial to remove all accesses to RestProxyCallPrivate. https://bugzilla.gnome.org/show_bug.cgi?id=735919
-rw-r--r--rest-extras/lastfm-proxy-call.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/rest-extras/lastfm-proxy-call.c b/rest-extras/lastfm-proxy-call.c
index f4bba60..417fa18 100644
--- a/rest-extras/lastfm-proxy-call.c
+++ b/rest-extras/lastfm-proxy-call.c
@@ -26,7 +26,6 @@
#include <rest/rest-proxy-call.h>
#include "lastfm-proxy-call.h"
#include "lastfm-proxy-private.h"
-#include "rest/rest-proxy-call-private.h"
#include "rest/sha1.h"
G_DEFINE_TYPE (LastfmProxyCall, lastfm_proxy_call, REST_TYPE_PROXY_CALL)
@@ -36,17 +35,14 @@ _prepare (RestProxyCall *call, GError **error)
{
LastfmProxy *proxy = NULL;
LastfmProxyPrivate *priv;
- RestProxyCallPrivate *call_priv;
GHashTable *params;
char *s;
g_object_get (call, "proxy", &proxy, NULL);
priv = LASTFM_PROXY_GET_PRIVATE (proxy);
- call_priv = call->priv;
-
rest_proxy_call_add_params (call,
- "method", call_priv->function,
+ "method", rest_proxy_call_get_function (call),
"api_key", priv->api_key,
NULL);
@@ -56,7 +52,7 @@ _prepare (RestProxyCall *call, GError **error)
if (priv->session_key)
rest_proxy_call_add_param (call, "sk", priv->session_key);
- params = rest_params_as_string_hash_table (call_priv->params);
+ params = rest_params_as_string_hash_table (rest_proxy_call_get_params (call));
s = lastfm_proxy_sign (proxy, params);
g_hash_table_unref (params);
rest_proxy_call_add_param (call, "api_sig", s);