webrtc: fix build with -DGST_REMOVE_DEPRECATED
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8901>
This commit is contained in:
parent
14d4c249ad
commit
b9a5efbe07
@ -507,8 +507,9 @@ for more information.</doc>
|
|||||||
</instance-parameter>
|
</instance-parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
</method>
|
</method>
|
||||||
<method name="send_data" c:identifier="gst_webrtc_data_channel_send_data">
|
<method name="send_data" c:identifier="gst_webrtc_data_channel_send_data" deprecated="1" deprecated-version="1.22">
|
||||||
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.c">Send @data as a data message over @channel.</doc>
|
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.c">Send @data as a data message over @channel.</doc>
|
||||||
|
<doc-deprecated xml:space="preserve">Use gst_webrtc_data_channel_send_data_full() instead</doc-deprecated>
|
||||||
<source-position filename="../subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.h"/>
|
<source-position filename="../subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.h"/>
|
||||||
<return-value transfer-ownership="none">
|
<return-value transfer-ownership="none">
|
||||||
<type name="none" c:type="void"/>
|
<type name="none" c:type="void"/>
|
||||||
@ -542,8 +543,9 @@ for more information.</doc>
|
|||||||
</parameter>
|
</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
</method>
|
</method>
|
||||||
<method name="send_string" c:identifier="gst_webrtc_data_channel_send_string">
|
<method name="send_string" c:identifier="gst_webrtc_data_channel_send_string" deprecated="1" deprecated-version="1.22">
|
||||||
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.c">Send @str as a string message over @channel.</doc>
|
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.c">Send @str as a string message over @channel.</doc>
|
||||||
|
<doc-deprecated xml:space="preserve">Use gst_webrtc_data_channel_send_string_full() instead</doc-deprecated>
|
||||||
<source-position filename="../subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.h"/>
|
<source-position filename="../subprojects/gst-plugins-bad/gst-libs/gst/webrtc/datachannel.h"/>
|
||||||
<return-value transfer-ownership="none">
|
<return-value transfer-ownership="none">
|
||||||
<type name="none" c:type="void"/>
|
<type name="none" c:type="void"/>
|
||||||
@ -664,7 +666,8 @@ for more information.</doc>
|
|||||||
<type name="none" c:type="void"/>
|
<type name="none" c:type="void"/>
|
||||||
</return-value>
|
</return-value>
|
||||||
</glib:signal>
|
</glib:signal>
|
||||||
<glib:signal name="send-data" when="last" action="1">
|
<glib:signal name="send-data" when="last" action="1" deprecated="1" deprecated-version="1.22">
|
||||||
|
<doc-deprecated xml:space="preserve">Use gst_webrtc_data_channel_send_data_full() instead</doc-deprecated>
|
||||||
<return-value transfer-ownership="none">
|
<return-value transfer-ownership="none">
|
||||||
<type name="none" c:type="void"/>
|
<type name="none" c:type="void"/>
|
||||||
</return-value>
|
</return-value>
|
||||||
@ -675,7 +678,8 @@ for more information.</doc>
|
|||||||
</parameter>
|
</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
</glib:signal>
|
</glib:signal>
|
||||||
<glib:signal name="send-string" when="last" action="1">
|
<glib:signal name="send-string" when="last" action="1" deprecated="1" deprecated-version="1.22">
|
||||||
|
<doc-deprecated xml:space="preserve">Use gst_webrtc_data_channel_send_string_full() instead</doc-deprecated>
|
||||||
<return-value transfer-ownership="none">
|
<return-value transfer-ownership="none">
|
||||||
<type name="none" c:type="void"/>
|
<type name="none" c:type="void"/>
|
||||||
</return-value>
|
</return-value>
|
||||||
|
@ -332,10 +332,13 @@ gst_webrtc_data_channel_class_init (GstWebRTCDataChannelClass * klass)
|
|||||||
g_signal_new ("on-buffered-amount-low", G_TYPE_FROM_CLASS (klass),
|
g_signal_new ("on-buffered-amount-low", G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 0);
|
G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 0);
|
||||||
|
|
||||||
|
#ifndef GST_REMOVE_DEPRECATED
|
||||||
/**
|
/**
|
||||||
* GstWebRTCDataChannel::send-data:
|
* GstWebRTCDataChannel::send-data:
|
||||||
* @object: the #GstWebRTCDataChannel
|
* @object: the #GstWebRTCDataChannel
|
||||||
* @data: (nullable): a #GBytes with the data
|
* @data: (nullable): a #GBytes with the data
|
||||||
|
*
|
||||||
|
* Deprecated: 1.22: Use gst_webrtc_data_channel_send_data_full() instead
|
||||||
*/
|
*/
|
||||||
gst_webrtc_data_channel_signals[SIGNAL_SEND_DATA] =
|
gst_webrtc_data_channel_signals[SIGNAL_SEND_DATA] =
|
||||||
g_signal_new_class_handler ("send-data", G_TYPE_FROM_CLASS (klass),
|
g_signal_new_class_handler ("send-data", G_TYPE_FROM_CLASS (klass),
|
||||||
@ -347,12 +350,15 @@ gst_webrtc_data_channel_class_init (GstWebRTCDataChannelClass * klass)
|
|||||||
* GstWebRTCDataChannel::send-string:
|
* GstWebRTCDataChannel::send-string:
|
||||||
* @object: the #GstWebRTCDataChannel
|
* @object: the #GstWebRTCDataChannel
|
||||||
* @data: (nullable): the data to send as a string
|
* @data: (nullable): the data to send as a string
|
||||||
|
*
|
||||||
|
* Deprecated: 1.22: Use gst_webrtc_data_channel_send_string_full() instead
|
||||||
*/
|
*/
|
||||||
gst_webrtc_data_channel_signals[SIGNAL_SEND_STRING] =
|
gst_webrtc_data_channel_signals[SIGNAL_SEND_STRING] =
|
||||||
g_signal_new_class_handler ("send-string", G_TYPE_FROM_CLASS (klass),
|
g_signal_new_class_handler ("send-string", G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION | G_SIGNAL_DEPRECATED,
|
||||||
G_CALLBACK (gst_webrtc_data_channel_send_string), NULL, NULL, NULL,
|
G_CALLBACK (gst_webrtc_data_channel_send_string), NULL, NULL, NULL,
|
||||||
G_TYPE_NONE, 1, G_TYPE_STRING);
|
G_TYPE_NONE, 1, G_TYPE_STRING);
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstWebRTCDataChannel::close:
|
* GstWebRTCDataChannel::close:
|
||||||
@ -508,12 +514,15 @@ gst_webrtc_data_channel_on_buffered_amount_low (GstWebRTCDataChannel * channel)
|
|||||||
gst_webrtc_data_channel_signals[SIGNAL_ON_BUFFERED_AMOUNT_LOW], 0);
|
gst_webrtc_data_channel_signals[SIGNAL_ON_BUFFERED_AMOUNT_LOW], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GST_REMOVE_DEPRECATED
|
||||||
/**
|
/**
|
||||||
* gst_webrtc_data_channel_send_data:
|
* gst_webrtc_data_channel_send_data:
|
||||||
* @channel: a #GstWebRTCDataChannel
|
* @channel: a #GstWebRTCDataChannel
|
||||||
* @data: (nullable): a #GBytes or %NULL
|
* @data: (nullable): a #GBytes or %NULL
|
||||||
*
|
*
|
||||||
* Send @data as a data message over @channel.
|
* Send @data as a data message over @channel.
|
||||||
|
*
|
||||||
|
* Deprecated: 1.22: Use gst_webrtc_data_channel_send_data_full() instead
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_webrtc_data_channel_send_data (GstWebRTCDataChannel * channel,
|
gst_webrtc_data_channel_send_data (GstWebRTCDataChannel * channel,
|
||||||
@ -526,6 +535,7 @@ gst_webrtc_data_channel_send_data (GstWebRTCDataChannel * channel,
|
|||||||
klass = GST_WEBRTC_DATA_CHANNEL_GET_CLASS (channel);
|
klass = GST_WEBRTC_DATA_CHANNEL_GET_CLASS (channel);
|
||||||
(void) klass->send_data (channel, data, NULL);
|
(void) klass->send_data (channel, data, NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_webrtc_data_channel_send_data_full:
|
* gst_webrtc_data_channel_send_data_full:
|
||||||
@ -551,12 +561,15 @@ gst_webrtc_data_channel_send_data_full (GstWebRTCDataChannel * channel,
|
|||||||
return klass->send_data (channel, data, error);
|
return klass->send_data (channel, data, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GST_REMOVE_DEPRECATED
|
||||||
/**
|
/**
|
||||||
* gst_webrtc_data_channel_send_string:
|
* gst_webrtc_data_channel_send_string:
|
||||||
* @channel: a #GstWebRTCDataChannel
|
* @channel: a #GstWebRTCDataChannel
|
||||||
* @str: (nullable): a string or %NULL
|
* @str: (nullable): a string or %NULL
|
||||||
*
|
*
|
||||||
* Send @str as a string message over @channel.
|
* Send @str as a string message over @channel.
|
||||||
|
*
|
||||||
|
* Deprecated: 1.22: Use gst_webrtc_data_channel_send_string_full() instead
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_webrtc_data_channel_send_string (GstWebRTCDataChannel * channel,
|
gst_webrtc_data_channel_send_string (GstWebRTCDataChannel * channel,
|
||||||
@ -569,6 +582,7 @@ gst_webrtc_data_channel_send_string (GstWebRTCDataChannel * channel,
|
|||||||
klass = GST_WEBRTC_DATA_CHANNEL_GET_CLASS (channel);
|
klass = GST_WEBRTC_DATA_CHANNEL_GET_CLASS (channel);
|
||||||
(void) klass->send_string (channel, str, NULL);
|
(void) klass->send_string (channel, str, NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_webrtc_data_channel_send_string_full:
|
* gst_webrtc_data_channel_send_string_full:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user