aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/networking/streams/stream_service.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-06-28 10:32:30 +0200
committerMartin Willi <martin@revosec.ch>2013-07-18 16:00:28 +0200
commitdb0e160ba28c0ec355f76f88033b0a3a2277deaa (patch)
treeabd81ee24bc9bf3f52c62c7e0e0256b2d6b9ff5c /src/libstrongswan/networking/streams/stream_service.h
parent441bb9e7b762bf234092d3ed1c64b61149e03ebe (diff)
downloadstrongswan-db0e160ba28c0ec355f76f88033b0a3a2277deaa.tar.bz2
strongswan-db0e160ba28c0ec355f76f88033b0a3a2277deaa.tar.xz
stream: add a job priority option to stream services
Diffstat (limited to 'src/libstrongswan/networking/streams/stream_service.h')
-rw-r--r--src/libstrongswan/networking/streams/stream_service.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstrongswan/networking/streams/stream_service.h b/src/libstrongswan/networking/streams/stream_service.h
index 91e5283ba..91a7a1722 100644
--- a/src/libstrongswan/networking/streams/stream_service.h
+++ b/src/libstrongswan/networking/streams/stream_service.h
@@ -23,6 +23,8 @@
typedef struct stream_service_t stream_service_t;
+#include <library.h>
+#include <processing/jobs/job.h>
#include <networking/streams/stream.h>
/**
@@ -56,9 +58,10 @@ 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
*/
void (*on_accept)(stream_service_t *this,
- stream_service_cb_t cb, void *data);
+ stream_service_cb_t cb, void *data, job_priority_t prio);
/**
* Destroy a stream_service_t.