[glib/ebassi/application-flags: 2/3] Rename G_TLS_CERTIFICATE_FLAGS_NONE
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/ebassi/application-flags: 2/3] Rename G_TLS_CERTIFICATE_FLAGS_NONE
- Date: Mon, 25 Jul 2022 16:58:25 +0000 (UTC)
commit df60307f50c6cbeb2dfa5ce37fb37913e0988426
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jul 25 00:16:46 2022 +0100
Rename G_TLS_CERTIFICATE_FLAGS_NONE
The prefix is G_TLS_CERTIFICATE, not G_TLS_CERTIFICATE_FLAGS. Having
G_TLS_CERTIFICATE_FLAGS_NONE leads to a FLAGS_NONE nick in the GType,
and a FLAGS_NONE member name in the introspection data.
gio/gdtlsclientconnection.c | 2 +-
gio/gioenums.h | 4 ++--
gio/gtlsclientconnection.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gio/gdtlsclientconnection.c b/gio/gdtlsclientconnection.c
index 403c8b74d0..507823c368 100644
--- a/gio/gdtlsclientconnection.c
+++ b/gio/gdtlsclientconnection.c
@@ -191,7 +191,7 @@ g_dtls_client_connection_new (GDatagramBased *base_socket,
GTlsCertificateFlags
g_dtls_client_connection_get_validation_flags (GDtlsClientConnection *conn)
{
- GTlsCertificateFlags flags = G_TLS_CERTIFICATE_FLAGS_NONE;
+ GTlsCertificateFlags flags = G_TLS_CERTIFICATE_NO_FLAGS;
g_return_val_if_fail (G_IS_DTLS_CLIENT_CONNECTION (conn), 0);
diff --git a/gio/gioenums.h b/gio/gioenums.h
index e19774c3c9..ba74a96e31 100644
--- a/gio/gioenums.h
+++ b/gio/gioenums.h
@@ -1583,7 +1583,7 @@ typedef enum {
/**
* GTlsCertificateFlags:
- * @G_TLS_CERTIFICATE_FLAGS_NONE: No flags. Since: 2.74
+ * @G_TLS_CERTIFICATE_NO_FLAGS: No flags set. Since: 2.74
* @G_TLS_CERTIFICATE_UNKNOWN_CA: The signing certificate authority is
* not known.
* @G_TLS_CERTIFICATE_BAD_IDENTITY: The certificate does not match the
@@ -1615,7 +1615,7 @@ typedef enum {
* Since: 2.28
*/
typedef enum {
- G_TLS_CERTIFICATE_FLAGS_NONE GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
+ G_TLS_CERTIFICATE_NO_FLAGS GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
G_TLS_CERTIFICATE_UNKNOWN_CA = (1 << 0),
G_TLS_CERTIFICATE_BAD_IDENTITY = (1 << 1),
G_TLS_CERTIFICATE_NOT_ACTIVATED = (1 << 2),
diff --git a/gio/gtlsclientconnection.c b/gio/gtlsclientconnection.c
index e6c77b681d..d64106e51b 100644
--- a/gio/gtlsclientconnection.c
+++ b/gio/gtlsclientconnection.c
@@ -213,7 +213,7 @@ g_tls_client_connection_new (GIOStream *base_io_stream,
GTlsCertificateFlags
g_tls_client_connection_get_validation_flags (GTlsClientConnection *conn)
{
- GTlsCertificateFlags flags = G_TLS_CERTIFICATE_FLAGS_NONE;
+ GTlsCertificateFlags flags = G_TLS_CERTIFICATE_NO_FLAGS;
g_return_val_if_fail (G_IS_TLS_CLIENT_CONNECTION (conn), 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]