From 6437c1a647c17ee3ce1de9d56cc1b78824791ee1 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 1 Aug 2017 17:06:31 +0200 Subject: lib: Simplify initializing flows This refactors dev.c to have a common function called init_flow that is called whenever a flow is allocated in dev.c --- include/ouroboros/np1_flow.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/ouroboros/np1_flow.h') diff --git a/include/ouroboros/np1_flow.h b/include/ouroboros/np1_flow.h index a4e94b89..3db2a0dd 100644 --- a/include/ouroboros/np1_flow.h +++ b/include/ouroboros/np1_flow.h @@ -24,10 +24,13 @@ #ifndef OUROBOROS_NP1_FLOW_H #define OUROBOROS_NP1_FLOW_H +#include + #include -int np1_flow_alloc(pid_t n_api, - int port_id); +int np1_flow_alloc(pid_t n_api, + int port_id, + qoscube_t qc); int np1_flow_resp(int port_id); -- cgit v1.2.3