diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-02-09 16:49:56 +0100 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-02-09 18:11:48 +0100 |
commit | 6785ca65ab48f1a29914c1784a24009964ec4720 (patch) | |
tree | 31828a5eb1a646883c3f582795c8ffc7c990b35b /include/ouroboros/dev.h | |
parent | 275dc65b22e39654e4dfc9cbd13277e490c8dccd (diff) | |
download | ouroboros-6785ca65ab48f1a29914c1784a24009964ec4720.tar.gz ouroboros-6785ca65ab48f1a29914c1784a24009964ec4720.zip |
ipcpd, lib: Report IPCP creation failure
The IPCP will now respond with an ipcp_create_r message when it fails,
informing the IRMd.
Also adds some const qualifiers in the public headers and fixes
some formatting in dev.c.
Diffstat (limited to 'include/ouroboros/dev.h')
-rw-r--r-- | include/ouroboros/dev.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/ouroboros/dev.h b/include/ouroboros/dev.h index 8ac38124..1d2a2533 100644 --- a/include/ouroboros/dev.h +++ b/include/ouroboros/dev.h @@ -30,7 +30,7 @@ #define UNKNOWN_AE "__UNKNOWN_AE__" /* These calls should be removed once we write the ouroboros OS. */ -int ap_init(char * ap_name); +int ap_init(const char * ap_name); void ap_fini(void); @@ -43,19 +43,19 @@ int flow_alloc_resp(int fd, /* * Returns flow descriptor (> 0). - * On returning, qos will contain the actual supplied QoS. + * On returning, spec will contain the actual supplied QoS. */ -int flow_alloc(char * dst_name, - char * src_ae_name, - qosspec_t * spec); +int flow_alloc(const char * dst_name, + const char * src_ae_name, + qosspec_t * spec); int flow_alloc_res(int fd); int flow_dealloc(int fd); -ssize_t flow_write(int fd, - void * buf, - size_t count); +ssize_t flow_write(int fd, + const void * buf, + size_t count); ssize_t flow_read(int fd, void * buf, |