ikev1: Extend adopt_children_job by task queuing, executed after adoption

This commit is contained in:
Martin Willi
2014-08-25 09:55:44 +02:00
parent cd9bba508b
commit 898c8b12f9
2 changed files with 48 additions and 0 deletions
@@ -24,6 +24,7 @@
#include <library.h>
#include <processing/jobs/job.h>
#include <sa/ike_sa_id.h>
#include <sa/task.h>
typedef struct adopt_children_job_t adopt_children_job_t;
@@ -36,6 +37,13 @@ struct adopt_children_job_t {
* Implements job_t.
*/
job_t job_interface;
/**
* Queue a job for execution after completing migration.
*
* @param task task to queue for execution
*/
void (*queue_task)(adopt_children_job_t *this, task_t *task);
};
/**