[ostree] libostree: Make OstreeTlsCertInteraction explicitly private
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] libostree: Make OstreeTlsCertInteraction explicitly private
- Date: Mon, 9 Jun 2014 18:05:19 +0000 (UTC)
commit 4ce93db595876e241537394884ab98f6665c2a49
Author: Colin Walters <walters verbum org>
Date: Sun Jun 8 07:58:12 2014 -0400
libostree: Make OstreeTlsCertInteraction explicitly private
Similar to previous commit, this should be private.
https://bugzilla.gnome.org/show_bug.cgi?id=731369
src/libostree/ostree-fetcher.c | 2 +-
src/libostree/ostree-tls-cert-interaction.c | 8 ++++----
src/libostree/ostree-tls-cert-interaction.h | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/libostree/ostree-fetcher.c b/src/libostree/ostree-fetcher.c
index 92dd0a0..24df14b 100644
--- a/src/libostree/ostree-fetcher.c
+++ b/src/libostree/ostree-fetcher.c
@@ -225,7 +225,7 @@ ostree_fetcher_set_client_cert (OstreeFetcher *fetcher,
{
#ifdef HAVE_LIBSOUP_CLIENT_CERTS
gs_unref_object GTlsInteraction *interaction =
- (GTlsInteraction*)ostree_tls_cert_interaction_new (fetcher->client_cert);
+ (GTlsInteraction*)_ostree_tls_cert_interaction_new (fetcher->client_cert);
g_object_set (fetcher->session, "tls-interaction", interaction, NULL);
#else
g_warning ("This version of OSTree is compiled without client side certificate support");
diff --git a/src/libostree/ostree-tls-cert-interaction.c b/src/libostree/ostree-tls-cert-interaction.c
index 63de917..846d572 100644
--- a/src/libostree/ostree-tls-cert-interaction.c
+++ b/src/libostree/ostree-tls-cert-interaction.c
@@ -34,7 +34,7 @@ struct _OstreeTlsCertInteractionClass
#include <string.h>
-G_DEFINE_TYPE (OstreeTlsCertInteraction, ostree_tls_cert_interaction, G_TYPE_TLS_INTERACTION);
+G_DEFINE_TYPE (OstreeTlsCertInteraction, _ostree_tls_cert_interaction, G_TYPE_TLS_INTERACTION);
static GTlsInteractionResult
request_certificate (GTlsInteraction *interaction,
@@ -49,19 +49,19 @@ request_certificate (GTlsInteraction *interaction,
}
static void
-ostree_tls_cert_interaction_init (OstreeTlsCertInteraction *interaction)
+_ostree_tls_cert_interaction_init (OstreeTlsCertInteraction *interaction)
{
}
static void
-ostree_tls_cert_interaction_class_init (OstreeTlsCertInteractionClass *klass)
+_ostree_tls_cert_interaction_class_init (OstreeTlsCertInteractionClass *klass)
{
GTlsInteractionClass *interaction_class = G_TLS_INTERACTION_CLASS (klass);
interaction_class->request_certificate = request_certificate;
}
OstreeTlsCertInteraction *
-ostree_tls_cert_interaction_new (GTlsCertificate *cert)
+_ostree_tls_cert_interaction_new (GTlsCertificate *cert)
{
OstreeTlsCertInteraction *self = g_object_new (OSTREE_TYPE_TLS_CERT_INTERACTION, NULL);
self->cert = g_object_ref (cert);
diff --git a/src/libostree/ostree-tls-cert-interaction.h b/src/libostree/ostree-tls-cert-interaction.h
index ca9cd32..c81097c 100644
--- a/src/libostree/ostree-tls-cert-interaction.h
+++ b/src/libostree/ostree-tls-cert-interaction.h
@@ -22,7 +22,7 @@
G_BEGIN_DECLS
-#define OSTREE_TYPE_TLS_CERT_INTERACTION (ostree_tls_cert_interaction_get_type ())
+#define OSTREE_TYPE_TLS_CERT_INTERACTION (_ostree_tls_cert_interaction_get_type ())
#define OSTREE_TLS_CERT_INTERACTION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o),
OSTREE_TYPE_TLS_CERT_INTERACTION, OstreeTlsCertInteraction))
#define OSTREE_TLS_CERT_INTERACTION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k),
OSTREE_TYPE_TLS_CERT_INTERACTION, OstreeTlsCertInteractionClass))
#define OSTREE_IS_TLS_CERT_INTERACTION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o),
OSTREE_TYPE_TLS_CERT_INTERACTION))
@@ -32,8 +32,8 @@ G_BEGIN_DECLS
typedef struct _OstreeTlsCertInteraction OstreeTlsCertInteraction;
typedef struct _OstreeTlsCertInteractionClass OstreeTlsCertInteractionClass;
-GType ostree_tls_cert_interaction_get_type (void) G_GNUC_CONST;
+GType _ostree_tls_cert_interaction_get_type (void) G_GNUC_CONST;
-OstreeTlsCertInteraction * ostree_tls_cert_interaction_new (GTlsCertificate *cert);
+OstreeTlsCertInteraction * _ostree_tls_cert_interaction_new (GTlsCertificate *cert);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]