diff options
| author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-10-04 18:06:32 +0200 | 
|---|---|---|
| committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-10-05 09:07:47 +0200 | 
| commit | b802b25ddfe6f1b6ecabe3ba70e3dac2e99e7a50 (patch) | |
| tree | 94e787f0f0ca1f0254b3728b0156b2e3283d8518 /include/ouroboros/sockets.h.in | |
| parent | 937adca2a718b160b6d42bb8a3f28d96321fdb49 (diff) | |
| download | ouroboros-b802b25ddfe6f1b6ecabe3ba70e3dac2e99e7a50.tar.gz ouroboros-b802b25ddfe6f1b6ecabe3ba70e3dac2e99e7a50.zip | |
lib: Pass qosspec at flow allocation
The flow allocator now passes the full qos specification to the
endpoint, instead of just a cube. This is a more flexible
architecture, as it makes QoS cubes internal to the layers.
Adds endianness transforms for the flow allocator protocol in the
normal IPCP.
Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'include/ouroboros/sockets.h.in')
| -rw-r--r-- | include/ouroboros/sockets.h.in | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/include/ouroboros/sockets.h.in b/include/ouroboros/sockets.h.in index 4557a9ef..368923db 100644 --- a/include/ouroboros/sockets.h.in +++ b/include/ouroboros/sockets.h.in @@ -23,6 +23,8 @@  #ifndef OUROBOROS_SOCKETS_H  #define OUROBOROS_SOCKETS_H +#include <ouroboros/qos.h> +  #include <sys/types.h>  #include "ipcp_config.pb-c.h" @@ -36,6 +38,9 @@ typedef IpcpInfoMsg ipcp_info_msg_t;  #include "ipcpd_messages.pb-c.h"  typedef IpcpMsg ipcp_msg_t; +#include "qosspec.pb-c.h" +typedef QosspecMsg qosspec_msg_t; +  #define SOCK_PATH "/var/run/ouroboros/"  #define SOCK_PATH_SUFFIX ".sock" @@ -53,4 +58,10 @@ int         client_socket_open(char * file_name);  irm_msg_t * send_recv_irm_msg(irm_msg_t * msg); + +/* qos message conversion needed in different components */ +qosspec_msg_t spec_to_msg(qosspec_t * qs); + +qosspec_t     msg_to_spec(qosspec_msg_t * msg); +  #endif | 
