From 83561d8963b1393a4a6683d1707199903c2d4659 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sat, 9 Sep 2006 23:24:39 +0000 Subject: [PATCH] Added the CCIF (Contiki Core InterFace) declarations necessary for a loadable packet driver. --- core/net/tcpip.h | 4 ++-- core/net/uip.h | 4 ++-- core/sys/process.h | 4 ++-- core/sys/service.h | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/net/tcpip.h b/core/net/tcpip.h index 99b0fb898..087bc7d2e 100644 --- a/core/net/tcpip.h +++ b/core/net/tcpip.h @@ -60,7 +60,7 @@ * * Author: Adam Dunkels * - * $Id: tcpip.h,v 1.4 2006/08/26 23:58:45 oliverschmidt Exp $ + * $Id: tcpip.h,v 1.5 2006/09/09 23:24:39 oliverschmidt Exp $ */ #ifndef __TCPIP_H__ #define __TCPIP_H__ @@ -294,7 +294,7 @@ CCIF extern process_event_t tcpip_event; * and the length of the packet must be in the global * uip_len variable. */ -void tcpip_input(void); +CCIF void tcpip_input(void); void tcpip_output(void); void tcpip_set_forwarding(unsigned char f); diff --git a/core/net/uip.h b/core/net/uip.h index b7c14d045..07636a89c 100644 --- a/core/net/uip.h +++ b/core/net/uip.h @@ -46,7 +46,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: uip.h,v 1.4 2006/08/26 23:58:45 oliverschmidt Exp $ + * $Id: uip.h,v 1.5 2006/09/09 23:24:39 oliverschmidt Exp $ * */ @@ -432,7 +432,7 @@ void uip_setipid(u16_t id); } \endcode */ -extern u8_t uip_buf[UIP_BUFSIZE+2]; +CCIF extern u8_t uip_buf[UIP_BUFSIZE+2]; /** @} */ diff --git a/core/sys/process.h b/core/sys/process.h index 314b0d084..f624c0889 100644 --- a/core/sys/process.h +++ b/core/sys/process.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: process.h,v 1.3 2006/08/26 23:59:39 oliverschmidt Exp $ + * @(#)$Id: process.h,v 1.4 2006/09/09 23:25:07 oliverschmidt Exp $ */ /** @@ -482,7 +482,7 @@ process_event_t process_alloc_event(void); * * \param p A pointer to the process' process structure. */ -void process_poll(struct process *p); +CCIF void process_poll(struct process *p); /** @} */ diff --git a/core/sys/service.h b/core/sys/service.h index 86cc3bf06..3ea2e6d62 100644 --- a/core/sys/service.h +++ b/core/sys/service.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: service.h,v 1.1 2006/06/17 22:41:20 adamdunkels Exp $ + * @(#)$Id: service.h,v 1.2 2006/09/09 23:25:07 oliverschmidt Exp $ */ /** \addtogroup sys @@ -186,8 +186,8 @@ struct service { */ #define SERVICE_FIND(service_name) service_find(service_name##_name) -void service_register(struct service *s); -void service_remove(struct service *s); +CCIF void service_register(struct service *s); +CCIF void service_remove(struct service *s); struct service *service_find(const char *name); #endif /* __SERVICE_H__ */