Пример #1
0
/** Create MRCP stream generator */
MRCP_DECLARE(mrcp_generator_t*) mrcp_generator_create(const mrcp_resource_factory_t *resource_factory, apr_pool_t *pool)
{
	mrcp_generator_t *generator = apr_palloc(pool,sizeof(mrcp_generator_t));
	generator->base = apt_message_generator_create(generator,&generator_vtable,pool);
	generator->resource_factory = resource_factory;
	return generator;
}
Пример #2
0
/** Create RTSP stream generator */
RTSP_DECLARE(rtsp_generator_t*) rtsp_generator_create(apr_pool_t *pool)
{
	rtsp_generator_t *generator = apr_palloc(pool,sizeof(rtsp_generator_t));
	generator->base = apt_message_generator_create(generator,&generator_vtable,pool);
	return generator;
}