Exemplo n.º 1
0
int main()
{
    infra_init();
    os_init();

    receive_init(fn_receive, fn_flash_receive_sink);
    collect_init(fn_collect, fn_flash_collect_sink, dt_collect);
    send_init(fn_send, fn_flash_receive_source, fn_flash_collect_source, dt_send);
    os_run();

    return 0;
}
Exemplo n.º 2
0
static LinphoneCoreManager* setup(bool_t enable_logs)  {
	LinphoneCoreManager *marie;
	int timeout = 300;

	collect_init();
	linphone_core_enable_log_collection(enable_logs);

	marie = linphone_core_manager_new2( "marie_rc", 0);
	// wait a few seconds to generate some traffic
	while (--timeout){
		// Generate some logs - error logs because we must ensure that
		// even if user did not enable logs, we will see them
		ms_error("(test error)Timeout in %d...", timeout);
	}
	return marie;
}
Exemplo n.º 3
0
int main()
{
	os_init();

 	collect_init("", "", 0);
	q_next();
	q_next();
	q_next();

 	receive_init("", "");
	receive_input();	
	q_next();

 	send_init("", "", "", 0);
	q_next();
	q_next();
	q_next();
	q_next();

	return 0;	
}