[gnome-online-accounts] ewsclient, httpclient: Use the name 'self' to refer to the instance
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] ewsclient, httpclient: Use the name 'self' to refer to the instance
- Date: Mon, 11 May 2015 15:31:17 +0000 (UTC)
commit 1de4fceba0e8aea3ed40687d8aca3c6879d60d0b
Author: Debarshi Ray <debarshir gnome org>
Date: Mon May 11 14:44:05 2015 +0200
ewsclient, httpclient: Use the name 'self' to refer to the instance
src/goabackend/goaewsclient.c | 18 +++++++++---------
src/goabackend/goaewsclient.h | 8 ++++----
src/goabackend/goahttpclient.c | 18 +++++++++---------
src/goabackend/goahttpclient.h | 8 ++++----
4 files changed, 26 insertions(+), 26 deletions(-)
---
diff --git a/src/goabackend/goaewsclient.c b/src/goabackend/goaewsclient.c
index 36e77ba..4989b5a 100644
--- a/src/goabackend/goaewsclient.c
+++ b/src/goabackend/goaewsclient.c
@@ -49,12 +49,12 @@ G_DEFINE_TYPE (GoaEwsClient, goa_ews_client, G_TYPE_OBJECT);
/* ---------------------------------------------------------------------------------------------------- */
static void
-goa_ews_client_init (GoaEwsClient *client)
+goa_ews_client_init (GoaEwsClient *self)
{
}
static void
-goa_ews_client_class_init (GoaEwsClientClass *klass)
+goa_ews_client_class_init (GoaEwsClientClass *self)
{
}
@@ -435,7 +435,7 @@ ews_client_create_msg_for_url (const gchar *url, xmlOutputBuffer *buf)
}
void
-goa_ews_client_autodiscover (GoaEwsClient *client,
+goa_ews_client_autodiscover (GoaEwsClient *self,
const gchar *email,
const gchar *password,
const gchar *username,
@@ -452,7 +452,7 @@ goa_ews_client_autodiscover (GoaEwsClient *client,
xmlDoc *doc;
xmlOutputBuffer *buf;
- g_return_if_fail (GOA_IS_EWS_CLIENT (client));
+ g_return_if_fail (GOA_IS_EWS_CLIENT (self));
g_return_if_fail (email != NULL && email[0] != '\0');
g_return_if_fail (password != NULL && password[0] != '\0');
g_return_if_fail (username != NULL && username[0] != '\0');
@@ -476,7 +476,7 @@ goa_ews_client_autodiscover (GoaEwsClient *client,
*/
data = g_slice_new0 (AutodiscoverData);
data->buf = buf;
- data->res = g_simple_async_result_new (G_OBJECT (client), callback, user_data,
goa_ews_client_autodiscover);
+ data->res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, goa_ews_client_autodiscover);
data->msgs[0] = ews_client_create_msg_for_url (url1, buf);
data->msgs[1] = ews_client_create_msg_for_url (url2, buf);
data->pending = sizeof (data->msgs) / sizeof (data->msgs[0]);
@@ -516,11 +516,11 @@ goa_ews_client_autodiscover (GoaEwsClient *client,
}
gboolean
-goa_ews_client_autodiscover_finish (GoaEwsClient *client, GAsyncResult *res, GError **error)
+goa_ews_client_autodiscover_finish (GoaEwsClient *self, GAsyncResult *res, GError **error)
{
GSimpleAsyncResult *simple;
- g_return_val_if_fail (g_simple_async_result_is_valid (res, G_OBJECT (client), goa_ews_client_autodiscover),
+ g_return_val_if_fail (g_simple_async_result_is_valid (res, G_OBJECT (self), goa_ews_client_autodiscover),
FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
@@ -551,7 +551,7 @@ ews_client_autodiscover_sync_cb (GObject *source_object, GAsyncResult *res, gpoi
}
gboolean
-goa_ews_client_autodiscover_sync (GoaEwsClient *client,
+goa_ews_client_autodiscover_sync (GoaEwsClient *self,
const gchar *email,
const gchar *password,
const gchar *username,
@@ -569,7 +569,7 @@ goa_ews_client_autodiscover_sync (GoaEwsClient *client,
g_main_context_push_thread_default (context);
data.loop = g_main_loop_new (context, FALSE);
- goa_ews_client_autodiscover (client,
+ goa_ews_client_autodiscover (self,
email,
password,
username,
diff --git a/src/goabackend/goaewsclient.h b/src/goabackend/goaewsclient.h
index 13892e6..617b3ff 100644
--- a/src/goabackend/goaewsclient.h
+++ b/src/goabackend/goaewsclient.h
@@ -1,6 +1,6 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/*
- * Copyright (C) 2012, 2013 Red Hat, Inc.
+ * Copyright (C) 2012, 2013, 2015 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -37,7 +37,7 @@ typedef struct _GoaEwsClient GoaEwsClient;
GType goa_ews_client_get_type (void) G_GNUC_CONST;
GoaEwsClient *goa_ews_client_new (void);
-void goa_ews_client_autodiscover (GoaEwsClient *client,
+void goa_ews_client_autodiscover (GoaEwsClient *self,
const gchar *email,
const gchar *password,
const gchar *username,
@@ -46,10 +46,10 @@ void goa_ews_client_autodiscover (GoaEwsClient *client,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer gpointer);
-gboolean goa_ews_client_autodiscover_finish (GoaEwsClient *client,
+gboolean goa_ews_client_autodiscover_finish (GoaEwsClient *self,
GAsyncResult *res,
GError **error);
-gboolean goa_ews_client_autodiscover_sync (GoaEwsClient *client,
+gboolean goa_ews_client_autodiscover_sync (GoaEwsClient *self,
const gchar *email,
const gchar *password,
const gchar *username,
diff --git a/src/goabackend/goahttpclient.c b/src/goabackend/goahttpclient.c
index 724d9c1..e61ef01 100644
--- a/src/goabackend/goahttpclient.c
+++ b/src/goabackend/goahttpclient.c
@@ -1,6 +1,6 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/*
- * Copyright (C) 2012, 2013, 2014 Red Hat, Inc.
+ * Copyright (C) 2012, 2013, 2014, 2015 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -42,7 +42,7 @@ G_DEFINE_TYPE (GoaHttpClient, goa_http_client, G_TYPE_OBJECT);
/* ---------------------------------------------------------------------------------------------------- */
static void
-goa_http_client_init (GoaHttpClient *client)
+goa_http_client_init (GoaHttpClient *self)
{
}
@@ -211,7 +211,7 @@ http_client_log_printer (SoupLogger *logger,
}
void
-goa_http_client_check (GoaHttpClient *client,
+goa_http_client_check (GoaHttpClient *self,
const gchar *uri,
const gchar *username,
const gchar *password,
@@ -224,14 +224,14 @@ goa_http_client_check (GoaHttpClient *client,
CheckAuthData *auth;
SoupLogger *logger;
- g_return_if_fail (GOA_IS_HTTP_CLIENT (client));
+ g_return_if_fail (GOA_IS_HTTP_CLIENT (self));
g_return_if_fail (uri != NULL && uri[0] != '\0');
g_return_if_fail (username != NULL && username[0] != '\0');
g_return_if_fail (password != NULL && password[0] != '\0');
g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
data = g_slice_new0 (CheckData);
- data->res = g_simple_async_result_new (G_OBJECT (client), callback, user_data, goa_http_client_check);
+ data->res = g_simple_async_result_new (G_OBJECT (self), callback, user_data, goa_http_client_check);
data->session = soup_session_new_with_options (SOUP_SESSION_SSL_STRICT, FALSE,
NULL);
@@ -270,11 +270,11 @@ goa_http_client_check (GoaHttpClient *client,
}
gboolean
-goa_http_client_check_finish (GoaHttpClient *client, GAsyncResult *res, GError **error)
+goa_http_client_check_finish (GoaHttpClient *self, GAsyncResult *res, GError **error)
{
GSimpleAsyncResult *simple;
- g_return_val_if_fail (g_simple_async_result_is_valid (res, G_OBJECT (client), goa_http_client_check),
FALSE);
+ g_return_val_if_fail (g_simple_async_result_is_valid (res, G_OBJECT (self), goa_http_client_check), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
simple = G_SIMPLE_ASYNC_RESULT (res);
@@ -304,7 +304,7 @@ http_client_check_sync_cb (GObject *source_object, GAsyncResult *res, gpointer u
}
gboolean
-goa_http_client_check_sync (GoaHttpClient *client,
+goa_http_client_check_sync (GoaHttpClient *self,
const gchar *uri,
const gchar *username,
const gchar *password,
@@ -321,7 +321,7 @@ goa_http_client_check_sync (GoaHttpClient *client,
g_main_context_push_thread_default (context);
data.loop = g_main_loop_new (context, FALSE);
- goa_http_client_check (client,
+ goa_http_client_check (self,
uri,
username,
password,
diff --git a/src/goabackend/goahttpclient.h b/src/goabackend/goahttpclient.h
index bba8545..676b183 100644
--- a/src/goabackend/goahttpclient.h
+++ b/src/goabackend/goahttpclient.h
@@ -1,6 +1,6 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/*
- * Copyright (C) 2012, 2013 Red Hat, Inc.
+ * Copyright (C) 2012, 2013, 2015 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -37,7 +37,7 @@ typedef struct _GoaHttpClient GoaHttpClient;
GType goa_http_client_get_type (void) G_GNUC_CONST;
GoaHttpClient *goa_http_client_new (void);
-void goa_http_client_check (GoaHttpClient *client,
+void goa_http_client_check (GoaHttpClient *self,
const gchar *uri,
const gchar *username,
const gchar *password,
@@ -45,10 +45,10 @@ void goa_http_client_check (GoaHttpClient *client,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
-gboolean goa_http_client_check_finish (GoaHttpClient *client,
+gboolean goa_http_client_check_finish (GoaHttpClient *self,
GAsyncResult *res,
GError **error);
-gboolean goa_http_client_check_sync (GoaHttpClient *client,
+gboolean goa_http_client_check_sync (GoaHttpClient *self,
const gchar *uri,
const gchar *username,
const gchar *password,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]