mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-17 00:00:59 -04:00
task: Add optional post_process() method
This will allows tasks to do some work after a message has been processed.
This commit is contained in:
parent
36cec38f22
commit
e9b6057f19
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2007-2018 Tobias Brunner
|
* Copyright (C) 2007-2019 Tobias Brunner
|
||||||
* Copyright (C) 2006 Martin Willi
|
* Copyright (C) 2006 Martin Willi
|
||||||
* HSR Hochschule fuer Technik Rapperswil
|
* HSR Hochschule fuer Technik Rapperswil
|
||||||
*
|
*
|
||||||
@ -183,6 +183,18 @@ struct task_t {
|
|||||||
*/
|
*/
|
||||||
status_t (*pre_process) (task_t *this, message_t *message);
|
status_t (*pre_process) (task_t *this, message_t *message);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called after a message has been processed (optional to implement).
|
||||||
|
*
|
||||||
|
* @param message processed message
|
||||||
|
* @return
|
||||||
|
* - SUCCESS if task completed
|
||||||
|
* - NEED_MORE if another call to build/process needed
|
||||||
|
* - Anything else will result in the destruction of
|
||||||
|
* the IKE_SA
|
||||||
|
*/
|
||||||
|
status_t (*post_process) (task_t *this, message_t *message);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the type of the task implementation.
|
* Get the type of the task implementation.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user