]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - src/libcharon/sa/ike_sa.h
ike-sa: Expose task_manager_t::remove_task()
[thirdparty/strongswan.git] / src / libcharon / sa / ike_sa.h
index bfec00981226af25c54c44da15002693a920512f..be480eac861708b4b1fa938ccd1eb6247a22a4e0 100644 (file)
@@ -1124,6 +1124,16 @@ struct ike_sa_t {
         */
        enumerator_t* (*create_task_enumerator)(ike_sa_t *this, task_queue_t queue);
 
+       /**
+        * Remove the task the given enumerator points to.
+        *
+        * @note This should be used with caution, in partciular, for tasks in the
+        * active and passive queues.
+        *
+        * @param enumerator    enumerator created with the method above
+        */
+       void (*remove_task)(ike_sa_t *this, enumerator_t *enumerator);
+
        /**
         * Flush a task queue, cancelling all tasks in it.
         *