From 420b06863ca1cd6c307a4a143d2c6aeb0fe31227 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Thu, 7 Feb 2008 23:04:35 +0000 Subject: [PATCH] Declare some more functions as CCIF (Contiki Core Interface) to trigger exporting the symbols from the main binary on Win32. --- core/sys/clock.h | 4 ++-- core/sys/etimer.h | 4 ++-- core/sys/process.h | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/sys/clock.h b/core/sys/clock.h index 144c646e9..72bd208ff 100644 --- a/core/sys/clock.h +++ b/core/sys/clock.h @@ -53,7 +53,7 @@ * * Author: Adam Dunkels * - * $Id: clock.h,v 1.3 2007/09/07 10:20:30 fros4943 Exp $ + * $Id: clock.h,v 1.4 2008/02/07 23:04:35 oliverschmidt Exp $ */ #ifndef __CLOCK_H__ #define __CLOCK_H__ @@ -78,7 +78,7 @@ void clock_init(void); * * \return The current clock time, measured in system ticks. */ -clock_time_t clock_time(void); +CCIF clock_time_t clock_time(void); void clock_delay(unsigned int); diff --git a/core/sys/etimer.h b/core/sys/etimer.h index aa4b5734b..a965089b9 100644 --- a/core/sys/etimer.h +++ b/core/sys/etimer.h @@ -58,7 +58,7 @@ * * Author: Adam Dunkels * - * $Id: etimer.h,v 1.2 2006/08/26 23:59:39 oliverschmidt Exp $ + * $Id: etimer.h,v 1.3 2008/02/07 23:04:35 oliverschmidt Exp $ */ #ifndef __ETIMER_H__ #define __ETIMER_H__ @@ -113,7 +113,7 @@ CCIF void etimer_set(struct etimer *et, clock_time_t interval); * * \sa etimer_restart() */ -void etimer_reset(struct etimer *et); +CCIF void etimer_reset(struct etimer *et); /** * \brief Restart an event timer from the current point in time diff --git a/core/sys/process.h b/core/sys/process.h index fc883cf7e..0d2639b46 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.14 2008/02/07 15:43:37 oliverschmidt Exp $ + * @(#)$Id: process.h,v 1.15 2008/02/07 23:04:35 oliverschmidt Exp $ */ /** @@ -327,7 +327,7 @@ struct process { * process * */ -void process_start(struct process *p, const char *arg); +CCIF void process_start(struct process *p, const char *arg); /** * Post an asynchronous event. @@ -362,8 +362,8 @@ CCIF int process_post(struct process *p, process_event_t ev, void* data); * \param data A pointer to additional data that is posted together * with the event. */ -void process_post_synch(struct process *p, - process_event_t ev, void* data); +CCIF void process_post_synch(struct process *p, + process_event_t ev, void* data); /** * \brief Cause a process to exit @@ -438,7 +438,7 @@ process_current = p * \note There currently is no way to deallocate an allocated event * number. */ -process_event_t process_alloc_event(void); +CCIF process_event_t process_alloc_event(void); /** @} */ @@ -497,7 +497,7 @@ int process_run(void); * \retval Non-zero if the process is running. * \retval Zero if the process is not running. */ -int process_is_running(struct process *p); +CCIF int process_is_running(struct process *p); /** * Number of events waiting to be processed.