summaryrefslogtreecommitdiff
path: root/include/ouroboros/dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ouroboros/dev.h')
-rw-r--r--include/ouroboros/dev.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/include/ouroboros/dev.h b/include/ouroboros/dev.h
index 414273ef..e857e211 100644
--- a/include/ouroboros/dev.h
+++ b/include/ouroboros/dev.h
@@ -24,29 +24,34 @@
#define OUROBOROS_DEV_H
#include <ouroboros/common.h>
+#include <ouroboros/flow.h>
#define UNKNOWN_AP "__UNKNOWN_AP__"
#define UNKNOWN_AE "__UNKNOWN_AE__"
+/* These calls should be removed once we write the ouroboros OS. */
+int ap_init(char * ap_name);
+void ap_fini();
+
/* Returns file descriptor */
-int ap_reg(char * ap_name, char ** difs, size_t difs_size);
-int ap_unreg(char * ap_name, char ** difs, size_t difs_size);
+int ap_reg(char ** difs, size_t difs_size);
+int ap_unreg(char ** difs, size_t difs_size);
/* Returns file descriptor (> 0) and client name(s) */
-int flow_accept(int fd, char * ap_name, char * ae_name);
+int flow_accept(int fd, char ** ap_name, char ** ae_name);
int flow_alloc_resp(int fd, int result);
/* Returns file descriptor */
-int flow_alloc(char * dst_ap_name, char * src_ap_name,
- char * src_ae_name, struct qos_spec * qos,
- int oflags);
+int flow_alloc(char * dst_name,
+ char * src_ae_name,
+ struct qos_spec * qos);
/* If flow is accepted returns a value > 0 */
int flow_alloc_res(int fd);
int flow_dealloc(int fd);
/* Wraps around fnctl */
-int flow_cntl(int fd, int oflags);
+int flow_cntl(int fd, int cmd, int oflags);
ssize_t flow_write(int fd, void * buf, size_t count);
ssize_t flow_read(int fd, void * buf, size_t count);