gboolean
customice_agent_set_remote_credentials (GstWebRTCICE * ice,
- GstWebRTCICEStream * stream, gchar * ufrag, gchar * pwd)
+ GstWebRTCICEStream * stream, const gchar * ufrag, const gchar * pwd)
{
GstWebRTCICE *c_ice = GST_WEBRTC_ICE (CUSTOMICE_AGENT (ice)->nice_agent);
return gst_webrtc_ice_set_remote_credentials (c_ice, stream, ufrag, pwd);
gboolean
customice_agent_set_local_credentials (GstWebRTCICE * ice,
- GstWebRTCICEStream * stream, gchar * ufrag, gchar * pwd)
+ GstWebRTCICEStream * stream, const gchar * ufrag, const gchar * pwd)
{
GstWebRTCICE *c_ice = GST_WEBRTC_ICE (CUSTOMICE_AGENT (ice)->nice_agent);
return gst_webrtc_ice_set_local_credentials (c_ice, stream, ufrag, pwd);
* @session_id: The session id
*
* Returns: (transfer full) (nullable): The #GstWebRTCICEStream, or %NULL
+ *
* Since: 1.22
*/
GstWebRTCICEStream *
* @component: The #GstWebRTCICEComponent
*
* Returns: (transfer full) (nullable): The #GstWebRTCICETransport, or %NULL
+ *
* Since: 1.22
*/
GstWebRTCICETransport *
* @ice: The #GstWebRTCICE
* @stream: The #GstWebRTCICEStream
* @candidate: The ICE candidate
+ *
* Since: 1.22
*/
void
* @stream: The #GstWebRTCICEStream
* @ufrag: ICE username
* @pwd: ICE password
+ *
* Returns: FALSE on error, TRUE otherwise
+ *
* Since: 1.22
*/
gboolean
gst_webrtc_ice_set_remote_credentials (GstWebRTCICE * ice,
- GstWebRTCICEStream * stream, gchar * ufrag, gchar * pwd)
+ GstWebRTCICEStream * stream, const gchar * ufrag, const gchar * pwd)
{
g_return_val_if_fail (GST_IS_WEBRTC_ICE (ice), FALSE);
g_assert (GST_WEBRTC_ICE_GET_CLASS (ice)->set_remote_credentials);
* gst_webrtc_ice_add_turn_server:
* @ice: The #GstWebRTCICE
* @uri: URI of the TURN server
+ *
* Returns: FALSE on error, TRUE otherwise
+ *
* Since: 1.22
*/
gboolean
* @stream: The #GstWebRTCICEStream
* @ufrag: ICE username
* @pwd: ICE password
+ *
* Returns: FALSE on error, TRUE otherwise
+ *
* Since: 1.22
*/
gboolean
gst_webrtc_ice_set_local_credentials (GstWebRTCICE * ice,
- GstWebRTCICEStream * stream, gchar * ufrag, gchar * pwd)
+ GstWebRTCICEStream * stream, const gchar * ufrag, const gchar * pwd)
{
g_return_val_if_fail (GST_IS_WEBRTC_ICE (ice), FALSE);
g_assert (GST_WEBRTC_ICE_GET_CLASS (ice)->set_local_credentials);
* @ice: The #GstWebRTCICE
* @stream: The #GstWebRTCICEStream
* Returns: FALSE on error, TRUE otherwise
+ *
* Since: 1.22
*/
gboolean
* gst_webrtc_ice_set_is_controller:
* @ice: The #GstWebRTCICE
* @controller: TRUE to set as controller
+ *
* Since: 1.22
*/
void
* gst_webrtc_ice_get_is_controller:
* @ice: The #GstWebRTCICE
* Returns: TRUE if set as controller, FALSE otherwise
+ *
* Since: 1.22
*/
gboolean
* gst_webrtc_ice_set_force_relay:
* @ice: The #GstWebRTCICE
* @force_relay: TRUE to enable force relay
+ *
* Since: 1.22
*/
void
* @ice: The #GstWebRTCICE
* @stream: The #GstWebRTCICEStream
* @tos: ToS to be set
+ *
* Since: 1.22
*/
void
* @ice: The #GstWebRTCICE
* @stream: The #GstWebRTCICEStream
* Returns: (transfer full)(array zero-terminated=1): List of local candidates
+ *
* Since: 1.22
*/
GstWebRTCICECandidateStats **
* @ice: The #GstWebRTCICE
* @stream: The #GstWebRTCICEStream
* Returns: (transfer full) (array zero-terminated=1): List of remote candidates
+ *
* Since: 1.22
*/
GstWebRTCICECandidateStats **
* @remote_stats: (out) (transfer full): pointer to #GstWebRTCICECandidateStats for remote candidate
*
* Returns: FALSE on failure, otherwise @local_stats @remote_stats will be set
+ *
* Since: 1.22
*/
gboolean
* @stats: The #GstWebRTCICECandidateStats to be free'd
*
* Helper function to free #GstWebRTCICECandidateStats
+ *
* Since: 1.22
*/
void
* @stats: The #GstWebRTCICE
*
* Returns: (transfer full): A copy of @stats
+ *
* Since: 1.22
*/
GstWebRTCICECandidateStats *
* @func: The #GstWebRTCICEOnCandidateFunc callback function
* @user_data: User data passed to the callback function
* @notify: a #GDestroyNotify when the candidate is no longer needed
+ *
* Since: 1.22
*/
void
/**
* gst_webrtc_ice_set_stun_server:
* @ice: The #GstWebRTCICE
- * @uri: URI of the STUN server
+ * @uri: (nullable): URI of the STUN server
+ *
* Since: 1.22
*/
void
/**
* gst_webrtc_ice_get_stun_server:
* @ice: The #GstWebRTCICE
- * Returns: URI of the STUN sever
+ *
+ * Returns: (nullable): URI of the STUN sever
+ *
* Since: 1.22
*/
gchar *
/**
* gst_webrtc_ice_set_turn_server:
* @ice: The #GstWebRTCICE
- * @uri: URI of the TURN sever
+ * @uri: (nullable): URI of the TURN sever
+ *
* Since: 1.22
*/
void
/**
* gst_webrtc_ice_get_turn_server:
* @ice: The #GstWebRTCICE
- * Returns: URI of the TURN sever
+ *
+ * Returns: (nullable): URI of the TURN sever
+ *
* Since: 1.22
*/
gchar *
* Callback function to be triggered on discovery of a new candidate
* Since: 1.22
*/
-typedef void (*GstWebRTCICEOnCandidateFunc) (GstWebRTCICE * ice, guint stream_id, gchar * candidate, gpointer user_data);
+typedef void (*GstWebRTCICEOnCandidateFunc) (GstWebRTCICE * ice, guint stream_id, const gchar * candidate, gpointer user_data);
struct _GstWebRTCICEClass {
GstObjectClass parent_class;
const gchar * candidate);
gboolean (*set_local_credentials) (GstWebRTCICE * ice,
GstWebRTCICEStream * stream,
- gchar * ufrag,
- gchar * pwd);
+ const gchar * ufrag,
+ const gchar * pwd);
gboolean (*set_remote_credentials) (GstWebRTCICE * ice,
GstWebRTCICEStream * stream,
- gchar * ufrag,
- gchar * pwd);
+ const gchar * ufrag,
+ const gchar * pwd);
gboolean (*add_turn_server) (GstWebRTCICE * ice,
const gchar * uri);
void (*set_is_controller) (GstWebRTCICE * ice,
GST_WEBRTC_API
gboolean gst_webrtc_ice_set_local_credentials (GstWebRTCICE * ice,
GstWebRTCICEStream * stream,
- gchar * ufrag,
- gchar * pwd);
+ const gchar * ufrag,
+ const gchar * pwd);
GST_WEBRTC_API
gboolean gst_webrtc_ice_set_remote_credentials (GstWebRTCICE * ice,
GstWebRTCICEStream * stream,
- gchar * ufrag,
- gchar * pwd);
+ const gchar * ufrag,
+ const gchar * pwd);
GST_WEBRTC_API
gboolean gst_webrtc_ice_add_turn_server (GstWebRTCICE * ice,