UniMRCP
1.5.0
|
Consumer Task Definition. More...
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_t * | apt_consumer_task_create (void *obj, apt_task_msg_pool_t *msg_pool, apr_pool_t *pool) |
apt_task_t * | apt_consumer_task_base_get (const apt_consumer_task_t *task) |
apt_task_vtable_t * | apt_consumer_task_vtable_get (const apt_consumer_task_t *task) |
void * | apt_consumer_task_object_get (const apt_consumer_task_t *task) |
apt_timer_t * | apt_consumer_task_timer_create (apt_consumer_task_t *task, apt_timer_proc_f proc, void *obj, apr_pool_t *pool) |
Consumer Task Definition.
typedef typedefAPT_BEGIN_EXTERN_C struct apt_consumer_task_t apt_consumer_task_t |
Opaque consumer task declaration
apt_task_t* apt_consumer_task_base_get | ( | const apt_consumer_task_t * | task | ) |
Get task base.
task | the consumer task to get base for |
apt_consumer_task_t* apt_consumer_task_create | ( | void * | obj, |
apt_task_msg_pool_t * | msg_pool, | ||
apr_pool_t * | pool | ||
) |
Create consumer task.
obj | the external object to associate with the task |
msg_pool | the pool of task messages |
pool | the pool to allocate memory from |
void* apt_consumer_task_object_get | ( | const apt_consumer_task_t * | task | ) |
Get consumer task object.
task | the consumer task to get object from |
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.
task | the consumer task to create timer for |
proc | the timer callback |
obj | the object to pass to callback |
pool | the pool to allocate memory from |
apt_task_vtable_t* apt_consumer_task_vtable_get | ( | const apt_consumer_task_t * | task | ) |
Get task vtable.
task | the consumer task to get vtable for |