pidgin/pidgin

Parents 54284ab06efd
Children c73eea1a860d
Add G_GNUC_BEGIN_IGNORE_DEPRECATIONS around uses of GParameter in our API
--- a/libpurple/media/backend-iface.h Tue Oct 08 23:55:59 2019 -0400
+++ b/libpurple/media/backend-iface.h Sat Oct 12 18:36:46 2019 -0500
@@ -61,11 +61,14 @@
/*< public >*/
/* Implementable functions called with purple_media_backend_* */
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gboolean (*add_stream) (PurpleMediaBackend *self,
const gchar *sess_id, const gchar *who,
PurpleMediaSessionType type, gboolean initiator,
const gchar *transmitter,
guint num_params, GParameter *params);
+ G_GNUC_END_IGNORE_DEPRECATIONS
+
void (*add_remote_candidates) (PurpleMediaBackend *self,
const gchar *sess_id, const gchar *participant,
GList *remote_candidates);
@@ -87,8 +90,10 @@
const gchar *sess_id, const gchar *participant,
const gchar *cipher, const gchar *auth,
const gchar *key, gsize key_len);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
void (*set_params) (PurpleMediaBackend *self,
guint num_params, GParameter *params);
+ G_GNUC_END_IGNORE_DEPRECATIONS
const gchar **(*get_available_params) (void);
gboolean (*send_dtmf) (PurpleMediaBackend *self,
const gchar *sess_id, gchar dtmf, guint8 volume,
@@ -121,11 +126,13 @@
*
* Returns: True if the stream was successfully created, othewise False.
*/
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gboolean purple_media_backend_add_stream(PurpleMediaBackend *self,
const gchar *sess_id, const gchar *who,
PurpleMediaSessionType type, gboolean initiator,
const gchar *transmitter,
guint num_params, GParameter *params);
+G_GNUC_END_IGNORE_DEPRECATIONS
/**
* purple_media_backend_add_remote_candidates:
@@ -254,8 +261,10 @@
*
* Sets various optional parameters of the media backend.
*/
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
void purple_media_backend_set_params(PurpleMediaBackend *self,
guint num_params, GParameter *params);
+G_GNUC_END_IGNORE_DEPRECATIONS
/**
* purple_media_backend_get_available_params:
--- a/libpurple/protocols/jabber/jingle/jingle.h Tue Oct 08 23:55:59 2019 -0400
+++ b/libpurple/protocols/jabber/jingle/jingle.h Sat Oct 12 18:36:46 2019 -0500
@@ -77,11 +77,13 @@
#ifdef USE_VV
/* create a GParam array given autoconfigured STUN (and later perhaps TURN).
if google_talk is TRUE, set compatability mode to GOOGLE_TALK */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GParameter *jingle_get_params(JabberStream *js, const gchar *relay_ip,
guint relay_udp, guint relay_tcp, guint relay_ssltcp,
const gchar *relay_username, const gchar *relay_password, guint *num_params);
+G_GNUC_END_IGNORE_DEPRECATIONS
#endif
G_END_DECLS
-#endif /* PURPLE_JABBER_JINGLE_H */
+#endif /ENDPLE_JABBER_JINGLE_H */