summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2017-08-01 17:06:31 +0200
committerSander Vrijders <[email protected]>2017-08-01 17:34:59 +0200
commit6437c1a647c17ee3ce1de9d56cc1b78824791ee1 (patch)
treebf9d89674ebec823265e5a61c7fdd51df64fa88e /include
parent490ebfdb483c6f13aa45e5d80610f55ee95f9fae (diff)
downloadouroboros-6437c1a647c17ee3ce1de9d56cc1b78824791ee1.tar.gz
ouroboros-6437c1a647c17ee3ce1de9d56cc1b78824791ee1.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/np1_flow.h7
-rw-r--r--include/ouroboros/sockets.h3
2 files changed, 5 insertions, 5 deletions
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 <ouroboros/qoscube.h>
+
#include <unistd.h>
-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);
diff --git a/include/ouroboros/sockets.h b/include/ouroboros/sockets.h
index 0d65c15d..660709bf 100644
--- a/include/ouroboros/sockets.h
+++ b/include/ouroboros/sockets.h
@@ -30,9 +30,6 @@
typedef IpcpConfigMsg ipcp_config_msg_t;
typedef DifInfoMsg dif_info_msg_t;
-#include "frct_enroll.pb-c.h"
-typedef FrctEnrollMsg frct_enroll_msg_t;
-
#include "irmd_messages.pb-c.h"
typedef IrmMsg irm_msg_t;