UniMRCP  1.7.0
Typedefs | Functions
apt_consumer_task.h File Reference

Consumer Task Definition. More...

#include "apt_task.h"
#include "apt_timer_queue.h"
Include dependency graph for apt_consumer_task.h:

Go to the source code of this file.

Typedefs

typedef typedefAPT_BEGIN_EXTERN_C struct apt_consumer_task_t apt_consumer_task_t
 

Functions

apt_consumer_task_tapt_consumer_task_create (void *obj, apt_task_msg_pool_t *msg_pool, apr_pool_t *pool)
 
apt_task_tapt_consumer_task_base_get (const apt_consumer_task_t *task)
 
apt_task_vtable_tapt_consumer_task_vtable_get (const apt_consumer_task_t *task)
 
void * apt_consumer_task_object_get (const apt_consumer_task_t *task)
 
apt_timer_tapt_consumer_task_timer_create (apt_consumer_task_t *task, apt_timer_proc_f proc, void *obj, apr_pool_t *pool)
 

Detailed Description

Consumer Task Definition.

Typedef Documentation

◆ apt_consumer_task_t

typedef typedefAPT_BEGIN_EXTERN_C struct apt_consumer_task_t apt_consumer_task_t

Opaque consumer task declaration

Function Documentation

◆ apt_consumer_task_base_get()

apt_task_t* apt_consumer_task_base_get ( const apt_consumer_task_t task)

Get task base.

Parameters
taskthe consumer task to get base for

◆ apt_consumer_task_create()

apt_consumer_task_t* apt_consumer_task_create ( void *  obj,
apt_task_msg_pool_t msg_pool,
apr_pool_t *  pool 
)

Create consumer task.

Parameters
objthe external object to associate with the task
msg_poolthe pool of task messages
poolthe pool to allocate memory from

◆ apt_consumer_task_object_get()

void* apt_consumer_task_object_get ( const apt_consumer_task_t task)

Get consumer task object.

Parameters
taskthe consumer task to get object from

◆ apt_consumer_task_timer_create()

apt_timer_t* apt_consumer_task_timer_create ( apt_consumer_task_t task,
apt_timer_proc_f  proc,
void *  obj,
apr_pool_t *  pool 
)

Create timer.

Parameters
taskthe consumer task to create timer for
procthe timer callback
objthe object to pass to callback
poolthe pool to allocate memory from

◆ apt_consumer_task_vtable_get()

apt_task_vtable_t* apt_consumer_task_vtable_get ( const apt_consumer_task_t task)

Get task vtable.

Parameters
taskthe consumer task to get vtable for