[librest] lastfm: Remove direct access to RestProxyCallPrivate
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest] lastfm: Remove direct access to RestProxyCallPrivate
- Date: Wed, 3 Sep 2014 08:55:52 +0000 (UTC)
commit 3ec0311b5f38f55784c63925600ff66263c20b9e
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue Sep 2 18:15:08 2014 +0200
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
rest-extras/lastfm-proxy-call.c | 8 ++------
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]