From 6785ca65ab48f1a29914c1784a24009964ec4720 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 9 Feb 2017 16:49:56 +0100 Subject: 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. --- include/ouroboros/dev.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include/ouroboros/dev.h') 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, -- cgit v1.2.3