mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Annotate various types and macros as deprecated
These have all been documented as deprecated for a long time, but we’ve
never had a way to programmatically mark them as deprecated. Do that
now.
This is based on the list of deprecations from the reverted commit
80fcb1bc2
.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #638
This commit is contained in:
@@ -638,6 +638,7 @@ g_dtls_connection_get_require_close_notify (GDtlsConnection *conn)
|
||||
* required for compatibility. Also, rehandshaking has been removed
|
||||
* from the TLS protocol in TLS 1.3.
|
||||
*/
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
void
|
||||
g_dtls_connection_set_rehandshake_mode (GDtlsConnection *conn,
|
||||
GTlsRehandshakeMode mode)
|
||||
@@ -648,6 +649,7 @@ g_dtls_connection_set_rehandshake_mode (GDtlsConnection *conn,
|
||||
"rehandshake-mode", mode,
|
||||
NULL);
|
||||
}
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
/**
|
||||
* g_dtls_connection_get_rehandshake_mode:
|
||||
@@ -660,6 +662,7 @@ g_dtls_connection_set_rehandshake_mode (GDtlsConnection *conn,
|
||||
*
|
||||
* Since: 2.48
|
||||
*/
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
GTlsRehandshakeMode
|
||||
g_dtls_connection_get_rehandshake_mode (GDtlsConnection *conn)
|
||||
{
|
||||
@@ -672,6 +675,7 @@ g_dtls_connection_get_rehandshake_mode (GDtlsConnection *conn)
|
||||
NULL);
|
||||
return mode;
|
||||
}
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
/**
|
||||
* g_dtls_connection_handshake:
|
||||
|
Reference in New Issue
Block a user