mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
task: Add optional post_build() method
This will allow tasks to do some work after the message has been generated.
This commit is contained in:
parent
28b33d7cac
commit
87caf36bb9
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2007-2015 Tobias Brunner
|
||||
* Copyright (C) 2007-2018 Tobias Brunner
|
||||
* Copyright (C) 2006 Martin Willi
|
||||
*
|
||||
* Copyright (C) secunet Security Networks AG
|
||||
@ -147,6 +147,18 @@ struct task_t {
|
||||
*/
|
||||
status_t (*build) (task_t *this, message_t *message);
|
||||
|
||||
/**
|
||||
* Called after a message has been built (optional to implement by tasks).
|
||||
*
|
||||
* @param message generated message, can't be modified anymore
|
||||
* @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_build) (task_t *this, message_t *message);
|
||||
|
||||
/**
|
||||
* Process a request or response message for this task.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user