UniMRCP  1.7.0
Typedefs | Functions
mpf_context.h File Reference

MPF Context. More...

#include "mpf_types.h"
Include dependency graph for mpf_context.h:

Go to the source code of this file.

Typedefs

typedef typedefAPT_BEGIN_EXTERN_C struct mpf_context_factory_t mpf_context_factory_t
 

Functions

mpf_context_factory_tmpf_context_factory_create (apr_pool_t *pool)
 
void mpf_context_factory_destroy (mpf_context_factory_t *factory)
 
apt_bool_t mpf_context_factory_process (mpf_context_factory_t *factory)
 
mpf_context_tmpf_context_create (mpf_context_factory_t *factory, const char *name, void *obj, apr_size_t max_termination_count, apr_pool_t *pool)
 
apt_bool_t mpf_context_destroy (mpf_context_t *context)
 
void * mpf_context_object_get (const mpf_context_t *context)
 
apt_bool_t mpf_context_termination_add (mpf_context_t *context, mpf_termination_t *termination)
 
apt_bool_t mpf_context_termination_subtract (mpf_context_t *context, mpf_termination_t *termination)
 
apt_bool_t mpf_context_association_add (mpf_context_t *context, mpf_termination_t *termination1, mpf_termination_t *termination2)
 
apt_bool_t mpf_context_association_remove (mpf_context_t *context, mpf_termination_t *termination1, mpf_termination_t *termination2)
 
apt_bool_t mpf_context_associations_reset (mpf_context_t *context)
 
apt_bool_t mpf_context_topology_apply (mpf_context_t *context)
 
apt_bool_t mpf_context_topology_destroy (mpf_context_t *context)
 
apt_bool_t mpf_context_process (mpf_context_t *context)
 

Detailed Description

MPF Context.

Typedef Documentation

◆ mpf_context_factory_t

typedef typedefAPT_BEGIN_EXTERN_C struct mpf_context_factory_t mpf_context_factory_t

Opaque factory of media contexts

Function Documentation

◆ mpf_context_association_add()

apt_bool_t mpf_context_association_add ( mpf_context_t context,
mpf_termination_t termination1,
mpf_termination_t termination2 
)

Add association between specified terminations.

Parameters
contextthe context to add association in the scope of
termination1the first termination to associate
termination2the second termination to associate

◆ mpf_context_association_remove()

apt_bool_t mpf_context_association_remove ( mpf_context_t context,
mpf_termination_t termination1,
mpf_termination_t termination2 
)

Remove association between specified terminations.

Parameters
contextthe context to remove association in the scope of
termination1the first termination
termination2the second termination

◆ mpf_context_associations_reset()

apt_bool_t mpf_context_associations_reset ( mpf_context_t context)

Reset assigned associations and destroy applied topology.

Parameters
contextthe context to reset associations for

◆ mpf_context_create()

mpf_context_t* mpf_context_create ( mpf_context_factory_t factory,
const char *  name,
void *  obj,
apr_size_t  max_termination_count,
apr_pool_t *  pool 
)

Create MPF context.

Parameters
factorythe factory context belongs to
namethe informative name of the context
objthe external object associated with context
max_termination_countthe max number of terminations in context
poolthe pool to allocate memory from

◆ mpf_context_destroy()

apt_bool_t mpf_context_destroy ( mpf_context_t context)

Destroy MPF context.

Parameters
contextthe context to destroy

◆ mpf_context_factory_create()

mpf_context_factory_t* mpf_context_factory_create ( apr_pool_t *  pool)

Create factory of media contexts.

◆ mpf_context_factory_destroy()

void mpf_context_factory_destroy ( mpf_context_factory_t factory)

Destroy factory of media contexts.

◆ mpf_context_factory_process()

apt_bool_t mpf_context_factory_process ( mpf_context_factory_t factory)

Process factory of media contexts.

◆ mpf_context_object_get()

void* mpf_context_object_get ( const mpf_context_t context)

Get external object associated with MPF context.

Parameters
contextthe context to get object from

◆ mpf_context_process()

apt_bool_t mpf_context_process ( mpf_context_t context)

Process context.

Parameters
contextthe context to process

◆ mpf_context_termination_add()

apt_bool_t mpf_context_termination_add ( mpf_context_t context,
mpf_termination_t termination 
)

Add termination to context.

Parameters
contextthe context to add termination to
terminationthe termination to add

◆ mpf_context_termination_subtract()

apt_bool_t mpf_context_termination_subtract ( mpf_context_t context,
mpf_termination_t termination 
)

Subtract termination from context.

Parameters
contextthe context to subtract termination from
terminationthe termination to subtract

◆ mpf_context_topology_apply()

apt_bool_t mpf_context_topology_apply ( mpf_context_t context)

Apply topology.

Parameters
contextthe context to apply topology for

◆ mpf_context_topology_destroy()

apt_bool_t mpf_context_topology_destroy ( mpf_context_t context)

Destroy topology.

Parameters
contextthe context to destroy topology for