ike: Add getter for the current message ID to task manager

This commit is contained in:
Tobias Brunner
2017-02-08 15:03:25 +01:00
parent e9d13476cb
commit 05a2be82c2
3 changed files with 23 additions and 1 deletions
+9 -1
View File
@@ -239,6 +239,14 @@ struct task_manager_t {
*/
void (*incr_mid)(task_manager_t *this, bool initiate);
/**
* Get the current message ID counter, in- or outbound.
*
* @param initiate TRUE to get the initiating ID
* @return current message ID
*/
uint32_t (*get_mid)(task_manager_t *this, bool initiate);
/**
* Reset message ID counters of the task manager.
*
@@ -253,7 +261,7 @@ struct task_manager_t {
* @param initiate message ID / DPD seq to initiate exchanges (send)
* @param respond message ID / DPD seq to respond to exchanges (expect)
*/
void (*reset) (task_manager_t *this, uint32_t initiate, uint32_t respond);
void (*reset)(task_manager_t *this, uint32_t initiate, uint32_t respond);
/**
* Check if we are currently waiting for a reply.