/**
* @brief Creates an instance of WebRTC.
* @since_tizen 6.5
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/internet
* @remarks You must release @a webrtc using webrtc_destroy().
* @param[out] webrtc WebRTC handle
* @return @c 0 on success,
* otherwise a negative error value
* @retval #WEBRTC_ERROR_NONE Successful
+ * @retval #WEBRTC_ERROR_PERMISSION_DENIED Permission denied
* @retval #WEBRTC_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #WEBRTC_ERROR_INVALID_OPERATION Invalid operation
* @post @a webrtc state will be #WEBRTC_STATE_IDLE.
#include "webrtc.h"
#include "webrtc_private.h"
+#define _WEBRTC_PRIVILEGE_INTERNET "http://tizen.org/privilege/internet"
+
int webrtc_set_error_cb(webrtc_h webrtc, webrtc_error_cb callback, void *user_data)
{
webrtc_s *_webrtc = (webrtc_s*)webrtc;
webrtc_s *_webrtc = NULL;
RET_VAL_IF(webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");
+ RET_ERR_IF_PRIVILEGE_IS_NOT_ALLOWED(_WEBRTC_PRIVILEGE_INTERNET);
_webrtc = g_new0(webrtc_s, 1);