[glib/tls-database] Minor cleanup of whitespace and naming for GTlsDatabase.
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/tls-database] Minor cleanup of whitespace and naming for GTlsDatabase.
- Date: Tue, 28 Dec 2010 02:36:14 +0000 (UTC)
commit e38643d2aa763ca96df98fa29439e5308c1bc77d
Author: Stef Walter <stefw collabora co uk>
Date: Mon Dec 27 17:37:31 2010 -0600
Minor cleanup of whitespace and naming for GTlsDatabase.
https://bugzilla.gnome.org/show_bug.cgi?id=636572
gio/gtlsdatabase.c | 4 ++--
gio/gtlsdatabase.h | 39 ++++++++++++++++++++-------------------
2 files changed, 22 insertions(+), 21 deletions(-)
---
diff --git a/gio/gtlsdatabase.c b/gio/gtlsdatabase.c
index 55d6eb5..a1c2f03 100644
--- a/gio/gtlsdatabase.c
+++ b/gio/gtlsdatabase.c
@@ -57,8 +57,8 @@ async_verify_chain_free (gpointer data)
static void
async_verify_chain_thread (GSimpleAsyncResult *res,
- GObject *object,
- GCancellable *cancellable)
+ GObject *object,
+ GCancellable *cancellable)
{
AsyncVerifyChain *args = g_object_get_qdata (G_OBJECT (res), Q_ASYNC_DATA);
GError *error = NULL;
diff --git a/gio/gtlsdatabase.h b/gio/gtlsdatabase.h
index ca9be5e..4329aff 100644
--- a/gio/gtlsdatabase.h
+++ b/gio/gtlsdatabase.h
@@ -32,7 +32,7 @@
G_BEGIN_DECLS
typedef enum {
- G_TLS_DATABASE_VERIFY_NOFLAGS = 0,
+ G_TLS_DATABASE_VERIFY_NONE = 0,
} GTlsDatabaseVerifyFlags;
#define G_TYPE_TLS_DATABASE (g_tls_certificate_get_type ())
@@ -45,7 +45,8 @@ typedef enum {
typedef struct _GTlsDatabaseClass GTlsDatabaseClass;
typedef struct _GTlsDatabasePrivate GTlsDatabasePrivate;
-struct _GTlsDatabase {
+struct _GTlsDatabase
+{
GObject parent_instance;
GTlsDatabasePrivate *priv;
@@ -62,17 +63,17 @@ struct _GTlsDatabaseClass
GCancellable *cancellable,
GError **error);
- void (*verify_chain_async) (GTlsDatabase *self,
- GTlsCertificate *chain,
- GSocketConnectable *identity,
+ void (*verify_chain_async) (GTlsDatabase *self,
+ GTlsCertificate *chain,
+ GSocketConnectable *identity,
GTlsDatabaseVerifyFlags flags,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
- GTlsCertificateFlags (*verify_chain_finish) (GTlsDatabase *self,
- GAsyncResult *result,
- GError **error);
+ GTlsCertificateFlags (*verify_chain_finish) (GTlsDatabase *self,
+ GAsyncResult *result,
+ GError **error);
GTlsCertificate* (*lookup_issuer) (GTlsDatabase *self,
GTlsCertificate *certificate,
@@ -94,7 +95,7 @@ struct _GTlsDatabaseClass
gpointer padding[16];
};
-GType g_tls_database_get_type (void) G_GNUC_CONST;
+GType g_tls_database_get_type (void) G_GNUC_CONST;
GTlsCertificateFlags g_tls_database_verify_chain (GTlsDatabase *self,
GTlsCertificate *chain,
@@ -120,15 +121,15 @@ GTlsCertificate* g_tls_database_lookup_issuer (GTlsDatabase
GCancellable *cancellable,
GError **error);
-void g_tls_database_lookup_issuer_async (GTlsDatabase *self,
+void g_tls_database_lookup_issuer_async (GTlsDatabase *self,
GTlsCertificate *certificate,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
-GTlsCertificate* g_tls_database_lookup_issuer_finish (GTlsDatabase *self,
- GAsyncResult *result,
- GError **error);
+GTlsCertificate* g_tls_database_lookup_issuer_finish (GTlsDatabase *self,
+ GAsyncResult *result,
+ GError **error);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]