mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 00:43:40 +02:00
headers: Add various missing G_DISABLE_DEPRECATED guards
As pointed out by gtk-doc, these are all symbols which have been marked as deprecated, but which aren’t protected by a deprecation guard. We can’t use G_DEPRECATED_IN_* for them, as they are all non-function symbols. Instead, wrap them in #ifndef G_DISABLE_DEPRECATED. In some cases, we also need to wrap one or two functions which use the deprecated types in G_DISABLE_DEPRECATED too. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -1603,6 +1603,7 @@ typedef enum {
|
||||
G_TLS_AUTHENTICATION_REQUIRED
|
||||
} GTlsAuthenticationMode;
|
||||
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
/**
|
||||
* GTlsRehandshakeMode:
|
||||
* @G_TLS_REHANDSHAKE_NEVER: Never allow rehandshaking
|
||||
@@ -1623,6 +1624,7 @@ typedef enum {
|
||||
G_TLS_REHANDSHAKE_SAFELY,
|
||||
G_TLS_REHANDSHAKE_UNSAFELY
|
||||
} GTlsRehandshakeMode;
|
||||
#endif /* !G_DISABLE_DEPRECATED */
|
||||
|
||||
/**
|
||||
* GTlsPasswordFlags:
|
||||
|
Reference in New Issue
Block a user