stream: add a concurrency option to services, limiting parallel callbacks
[strongswan.git] / src / libstrongswan / networking / streams / stream_service.h
index 91a7a17..27ef791 100644 (file)
@@ -59,9 +59,11 @@ struct stream_service_t {
         * @param cb            callback function to call for accepted client streams
         * @param data          data to pass to callback function
         * @param prio          job priority to run callback with
+        * @param cncrncy       maximum number of parallel callback invocations
         */
        void (*on_accept)(stream_service_t *this,
-                                         stream_service_cb_t cb, void *data, job_priority_t prio);
+                                         stream_service_cb_t cb, void *data,
+                                         job_priority_t prio, u_int cncrncy);
 
        /**
         * Destroy a stream_service_t.