ike-sa: Expose task_manager_t::adopt_child_tasks()
This commit is contained in:
@@ -2739,6 +2739,15 @@ METHOD(ike_sa_t, queue_task_delayed, void,
|
||||
this->task_manager->queue_task_delayed(this->task_manager, task, delay);
|
||||
}
|
||||
|
||||
METHOD(ike_sa_t, adopt_child_tasks, void,
|
||||
private_ike_sa_t *this, ike_sa_t *other_public)
|
||||
{
|
||||
private_ike_sa_t *other = (private_ike_sa_t*)other_public;
|
||||
|
||||
this->task_manager->adopt_child_tasks(this->task_manager,
|
||||
other->task_manager);
|
||||
}
|
||||
|
||||
METHOD(ike_sa_t, inherit_pre, void,
|
||||
private_ike_sa_t *this, ike_sa_t *other_public)
|
||||
{
|
||||
@@ -3057,6 +3066,7 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id, bool initiator,
|
||||
.flush_queue = _flush_queue,
|
||||
.queue_task = _queue_task,
|
||||
.queue_task_delayed = _queue_task_delayed,
|
||||
.adopt_child_tasks = _adopt_child_tasks,
|
||||
#ifdef ME
|
||||
.act_as_mediation_server = _act_as_mediation_server,
|
||||
.get_server_reflexive_host = _get_server_reflexive_host,
|
||||
|
||||
Reference in New Issue
Block a user