diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-06-21 10:24:55 +0000 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-06-21 10:24:55 +0000 |
commit | 2057bd9666cbcc09e7abc92e260ba20907f6a299 (patch) | |
tree | e0bbe49e68ba86be325ee23c5879a7611df87c9f /include/ouroboros/qos.h | |
parent | 22020246ac2b6f03f42dffb48ced19e43b3e9b77 (diff) | |
parent | 806629e64e8231d0c57a80d3b6584094cd6c89bd (diff) | |
download | ouroboros-2057bd9666cbcc09e7abc92e260ba20907f6a299.tar.gz ouroboros-2057bd9666cbcc09e7abc92e260ba20907f6a299.zip |
Merged in sandervrijders/ouroboros/be-qos (pull request #517)
lib, ipcpd, irmd: Add full-fledged QoS
Diffstat (limited to 'include/ouroboros/qos.h')
-rw-r--r-- | include/ouroboros/qos.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/ouroboros/qos.h b/include/ouroboros/qos.h index b12fed60..78bdba45 100644 --- a/include/ouroboros/qos.h +++ b/include/ouroboros/qos.h @@ -25,13 +25,22 @@ #define OUROBOROS_QOS_H #include <stdint.h> +#include <stdbool.h> typedef struct qos_spec { - uint32_t delay; - uint32_t jitter; + uint32_t delay; /* In ms */ + uint64_t bandwidth; /* In bits/s */ + uint8_t availability; /* Class of 9s */ + uint32_t maximum_interruption; /* In ms */ - /* FIXME: define qosspecs */ - int cube; + bool resource_control; /* Feedback from receiver */ + bool reliable; /* Reliable flow */ + bool error_check; /* Check for errors */ + bool ordered; /* Ordered delivery */ + bool partial; /* Allow partial delivery */ } qosspec_t; +int qosspec_init(qosspec_t * qs); +int qosspec_fini(qosspec_t * qs); + #endif |