/**
* @brief Creates SDP offer to start a new WebRTC connection to a remote peer.
* @since_tizen 6.5
- * @remarks The @a offer should be released using free().
+ * @remarks The @a offer should be released using free().\n
+ * The @a options currently has no effect.
* @param[in] webrtc WebRTC handle
+ * @param[in] options Configuration options for the offer (optional, this can be NULL)
* @param[out] offer SDP offer
* @return @c 0 on success,
* otherwise a negative error value
* @see webrtc_negotiation_needed_cb()
* @see webrtc_set_local_description()
*/
-int webrtc_create_offer(webrtc_h webrtc, char **offer);
+int webrtc_create_offer(webrtc_h webrtc, bundle *options, char **offer);
/**
* @brief Creates SDP answer to an offer received from a remote peer during the negotiation of a WebRTC connection.
* @since_tizen 6.5
* @remarks The @a answer should be released using free().
+ * The @a options currently has no effect.
* @param[in] webrtc WebRTC handle
+ * @param[in] options Configuration options for the answer (optional, this can be NULL)
* @param[out] answer SDP answer
* @return @c 0 on success,
* otherwise a negative error value
* @see webrtc_set_remote_description()
* @see webrtc_set_local_description()
*/
-int webrtc_create_answer(webrtc_h webrtc, char **answer);
+int webrtc_create_answer(webrtc_h webrtc, bundle *options, char **answer);
/**
* @brief Sets the session description for a local peer associated with a WebRTC connection.
return WEBRTC_ERROR_NONE;
}
-int webrtc_create_offer(webrtc_h webrtc, char **offer)
+int webrtc_create_offer(webrtc_h webrtc, bundle *options, char **offer)
{
int ret = WEBRTC_ERROR_NONE;
webrtc_s *_webrtc = (webrtc_s*)webrtc;
return ret;
}
-int webrtc_create_answer(webrtc_h webrtc, char **answer)
+int webrtc_create_answer(webrtc_h webrtc, bundle *options, char **answer)
{
int ret = WEBRTC_ERROR_NONE;
webrtc_s *_webrtc = (webrtc_s*)webrtc;
g_conns[index].offer = NULL;
}
- ret = webrtc_create_offer(g_conns[index].webrtc, &g_conns[index].offer);
+ ret = webrtc_create_offer(g_conns[index].webrtc, NULL, &g_conns[index].offer);
if (ret != WEBRTC_ERROR_NONE)
g_print("failed to webrtc_create_offer()\n");
else
g_conns[index].answer = NULL;
}
- ret = webrtc_create_answer(g_conns[index].webrtc, &g_conns[index].answer);
+ ret = webrtc_create_answer(g_conns[index].webrtc, NULL, &g_conns[index].answer);
if (ret != WEBRTC_ERROR_NONE)
g_print("failed to webrtc_create_answer()\n");
else