[frogr] Add support for token's secret in FspData
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Add support for token's secret in FspData
- Date: Wed, 4 Apr 2012 01:39:48 +0000 (UTC)
commit 74e3b372763295512b20d46eefc11e2f3ea6bc03
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Wed Apr 4 03:28:24 2012 +0200
Add support for token's secret in FspData
src/flicksoup/fsp-data.c | 3 +++
src/flicksoup/fsp-data.h | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/flicksoup/fsp-data.c b/src/flicksoup/fsp-data.c
index 734b990..53cdd1f 100644
--- a/src/flicksoup/fsp-data.c
+++ b/src/flicksoup/fsp-data.c
@@ -45,6 +45,7 @@ fsp_data_new (FspDataType type)
{
case FSP_AUTH_TOKEN:
new_data->auth_token.token = NULL;
+ new_data->auth_token.token_secret = NULL;
new_data->auth_token.permissions = NULL;
new_data->auth_token.nsid = NULL;
new_data->auth_token.username = NULL;
@@ -126,6 +127,7 @@ fsp_data_copy (const FspData *data)
{
case FSP_AUTH_TOKEN:
new_data->auth_token.token = g_strdup (data->auth_token.token);
+ new_data->auth_token.token_secret = g_strdup (data->auth_token.token_secret);
new_data->auth_token.permissions = g_strdup (data->auth_token.permissions);
new_data->auth_token.nsid = g_strdup (data->auth_token.nsid);
new_data->auth_token.username = g_strdup (data->auth_token.username);
@@ -205,6 +207,7 @@ fsp_data_free (FspData *data)
{
case FSP_AUTH_TOKEN:
g_free (data->auth_token.token);
+ g_free (data->auth_token.token_secret);
g_free (data->auth_token.permissions);
g_free (data->auth_token.nsid);
g_free (data->auth_token.username);
diff --git a/src/flicksoup/fsp-data.h b/src/flicksoup/fsp-data.h
index bbf9873..adbfaa3 100644
--- a/src/flicksoup/fsp-data.h
+++ b/src/flicksoup/fsp-data.h
@@ -131,6 +131,7 @@ struct _FspDataAuthToken
{
FspDataType type;
gchar *token;
+ gchar *token_secret;
gchar *permissions;
gchar *nsid;
gchar *username;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]