summaryrefslogtreecommitdiff
path: root/src/ipcpd/flow.h
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-14 21:59:46 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-14 21:59:46 +0200
commit1712f5d78567bbad7a0608fb1428be000a83fe4a (patch)
tree0831f200a4e2d38d68393a4bccfbd2d5c48d2586 /src/ipcpd/flow.h
parent43228f68f8e577015fe8116ab145fcc45ab789e7 (diff)
parent8f1e46eab45ba0f497f05d6fe18fb83d8590b3e9 (diff)
downloadouroboros-1712f5d78567bbad7a0608fb1428be000a83fe4a.tar.gz
ouroboros-1712f5d78567bbad7a0608fb1428be000a83fe4a.zip
Merged in sandervrijders/ouroboros/be (pull request #84)
lib, ipcpd, irmd: Add QoS cube definition
Diffstat (limited to 'src/ipcpd/flow.h')
-rw-r--r--src/ipcpd/flow.h31
1 files changed, 7 insertions, 24 deletions
diff --git a/src/ipcpd/flow.h b/src/ipcpd/flow.h
index 43de5f94..6f50698e 100644
--- a/src/ipcpd/flow.h
+++ b/src/ipcpd/flow.h
@@ -20,32 +20,15 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#ifndef OUROBOROS_FLOW_H
-#define OUROBOROS_FLOW_H
+#ifndef OUROBOROS_IPCP_FLOW_H
+#define OUROBOROS_IPCP_FLOW_H
-#include <ouroboros/common.h>
#include <ouroboros/list.h>
+#include <ouroboros/flow.h>
#include <ouroboros/shm_ap_rbuff.h>
#include <pthread.h>
-/* same values as fcntl.h */
-#define FLOW_O_RDONLY 00000000
-#define FLOW_O_WRONLY 00000001
-#define FLOW_O_RDWR 00000002
-#define FLOW_O_ACCMODE 00000003
-
-#define FLOW_O_NONBLOCK 00004000
-#define FLOW_O_DEFAULT 00000002
-
-#define FLOW_O_INVALID (FLOW_O_WRONLY | FLOW_O_RDWR)
-
-enum flow_state {
- FLOW_NULL = 0,
- FLOW_ALLOCATED,
- FLOW_PENDING
-};
-
-typedef struct flow {
+struct flow {
struct list_head list;
int port_id;
@@ -53,9 +36,9 @@ typedef struct flow {
enum flow_state state;
pthread_mutex_t lock;
-} flow_t;
+};
-flow_t * flow_create(int port_id);
-void flow_destroy(flow_t * flow);
+struct flow * flow_create(int port_id);
+void flow_destroy(struct flow * flow);
#endif /* OUROBOROS_FLOW_H */