Unnecessary hook for startup/cleanup functions is removed.
Change-Id: Ib7edd5e249beafcb07b0df814c7f1697f8cbb231
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
#define TEST_ICE_CANDIDATE "{'ice':{'candidate':'candidate:3600539631 1 tcp 1518149375 192.168.0.127 9 typ host tcptype active generation 0 ufrag l4kk network-id 3 network-cost 10','sdpMid':'video0','sdpMLineIndex':0}}"
/**
-* @function webrtcStatsCB
-* @parameter webrtc_stats_type_e type, const webrtc_stats_prop_info_s *prop_info, void *user_data
-* @return NA
+* @function webrtcStatsCB
+* @parameter webrtc_stats_type_e type, const webrtc_stats_prop_info_s *prop_info, void *user_data
+* @return @c true to continue with the next iteration of the loop, otherwise @c false to break out of the loop
*/
-static void webrtcStatsCB(webrtc_stats_type_e type, const webrtc_stats_prop_info_s *prop_info, void *user_data)
+static bool webrtcStatsCB(webrtc_stats_type_e type, const webrtc_stats_prop_info_s *prop_info, void *user_data)
{
callback_data *cb_data = (callback_data *)user_data;
FPRINTF("[Line : %d][%s] Callback webrtcStatsCB called type[0x%x] prop[%s, 0x%08x, value:%d]\\n", __LINE__, API_NAMESPACE, type, prop_info->name, prop_info->prop, prop_info->type);
if (!cb_data)
- return;
+ return false;
cb_data->is_invoked = true;
QUIT_LOOP(cb_data->mainloop);
+ return false;
}
/**
extern int ITc_webrtc_data_channel_get_buffered_amount_p(void);
extern int ITc_webrtc_data_channel_set_unset_buffered_amount_low_cb_p(void);
extern int ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p(void);
-extern int ITc_webrtc_media_source_set_get_video_framerate_p(void);\r
+extern int ITc_webrtc_media_source_set_get_video_framerate_p(void);
extern int ITc_webrtc_set_get_bundle_policy_p(void);
extern int ITc_webrtc_foreach_stats_p(void);
{"ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p",ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
{"ITc_webrtc_media_source_set_get_video_framerate_p",ITc_webrtc_media_source_set_get_video_framerate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
{"ITc_webrtc_set_get_bundle_policy_p",ITc_webrtc_set_get_bundle_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
- {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
+ {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
{NULL, NULL}
};
extern int ITc_webrtc_data_channel_get_buffered_amount_p(void);
extern int ITc_webrtc_data_channel_set_unset_buffered_amount_low_cb_p(void);
extern int ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p(void);
-extern int ITc_webrtc_media_source_set_get_video_framerate_p(void);\r
+extern int ITc_webrtc_media_source_set_get_video_framerate_p(void);
extern int ITc_webrtc_set_get_bundle_policy_p(void);
extern int ITc_webrtc_foreach_stats_p(void);
{"ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p",ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
{"ITc_webrtc_media_source_set_get_video_framerate_p",ITc_webrtc_media_source_set_get_video_framerate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
{"ITc_webrtc_set_get_bundle_policy_p",ITc_webrtc_set_get_bundle_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
- {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
+ {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
{NULL, NULL}
};
extern int ITc_webrtc_data_channel_get_buffered_amount_p(void);
extern int ITc_webrtc_data_channel_set_unset_buffered_amount_low_cb_p(void);
extern int ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p(void);
-extern int ITc_webrtc_media_source_set_get_video_framerate_p(void);\r
+extern int ITc_webrtc_media_source_set_get_video_framerate_p(void);
extern int ITc_webrtc_set_get_bundle_policy_p(void);
extern int ITc_webrtc_foreach_stats_p(void);
{"ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p",ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
{"ITc_webrtc_media_source_set_get_video_framerate_p",ITc_webrtc_media_source_set_get_video_framerate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
{"ITc_webrtc_set_get_bundle_policy_p",ITc_webrtc_set_get_bundle_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
- {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
+ {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
{NULL, NULL}
};
extern int ITc_webrtc_data_channel_get_buffered_amount_p(void);
extern int ITc_webrtc_data_channel_set_unset_buffered_amount_low_cb_p(void);
extern int ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p(void);
-extern int ITc_webrtc_media_source_set_get_video_framerate_p(void);\r
+extern int ITc_webrtc_media_source_set_get_video_framerate_p(void);
extern int ITc_webrtc_set_get_bundle_policy_p(void);
extern int ITc_webrtc_foreach_stats_p(void);
{"ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p",ITc_webrtc_data_channel_get_buffered_amount_low_threshold_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
{"ITc_webrtc_media_source_set_get_video_framerate_p",ITc_webrtc_media_source_set_get_video_framerate_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
{"ITc_webrtc_set_get_bundle_policy_p",ITc_webrtc_set_get_bundle_policy_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
- {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, ITs_webrtc_startup, ITs_webrtc_cleanup},
+ {"ITc_webrtc_foreach_stats_p",ITc_webrtc_foreach_stats_p, NULL, NULL},
{NULL, NULL}
};