mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 07:58:44 +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:
@@ -109,11 +109,13 @@ void g_tls_connection_set_require_close_notify (GTlsConnecti
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_tls_connection_get_require_close_notify (GTlsConnection *conn);
|
||||
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
GLIB_DEPRECATED_IN_2_60
|
||||
void g_tls_connection_set_rehandshake_mode (GTlsConnection *conn,
|
||||
GTlsRehandshakeMode mode);
|
||||
GLIB_DEPRECATED_IN_2_60
|
||||
GTlsRehandshakeMode g_tls_connection_get_rehandshake_mode (GTlsConnection *conn);
|
||||
#endif /* !G_DISABLE_DEPRECATED */
|
||||
|
||||
GLIB_AVAILABLE_IN_2_60
|
||||
void g_tls_connection_set_advertised_protocols (GTlsConnection *conn,
|
||||
|
Reference in New Issue
Block a user