Removed support for the old method of starting a dynamically loaded process based on the symbol 'process_load'. All loaders now have to use the new method based on the symbol 'autostart_processes'.

This commit is contained in:
oliverschmidt 2008-02-07 15:43:37 +00:00
parent 70dd3218f3
commit 41beef7cca

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* @(#)$Id: process.h,v 1.13 2008/01/23 15:18:06 adamdunkels Exp $ * @(#)$Id: process.h,v 1.14 2008/02/07 15:43:37 oliverschmidt Exp $
*/ */
/** /**
@ -275,12 +275,6 @@ typedef unsigned char process_num_events_t;
static PT_THREAD(process_thread_##name(struct pt *process_pt, \ static PT_THREAD(process_thread_##name(struct pt *process_pt, \
process_event_t ev, \ process_event_t ev, \
process_data_t data)) process_data_t data))
#if PROCESS_LOADABLE
#define PROCESS_LOAD(name) const struct process *process_load = &name
#else /* PROCESS_LOADABLE */
#define PROCESS_LOAD(name) extern int _dummy
#endif /* PROCESS_LOADABLE */
CLIF extern const struct process *process_load;
/** /**
* Declare the name of a process. * Declare the name of a process.
@ -292,10 +286,6 @@ CLIF extern const struct process *process_load;
*/ */
#define PROCESS_NAME(name) extern struct process name #define PROCESS_NAME(name) extern struct process name
#define PROCESS_NOLOAD(name, strname) \
PROCESS_THREAD(name, ev, data); \
struct process name = { NULL, strname, \
process_thread_##name }
/** /**
* Declare a process. * Declare a process.
* *
@ -309,8 +299,9 @@ CLIF extern const struct process *process_load;
* \hideinitializer * \hideinitializer
*/ */
#define PROCESS(name, strname) \ #define PROCESS(name, strname) \
PROCESS_NOLOAD(name, strname); \ PROCESS_THREAD(name, ev, data); \
PROCESS_LOAD(name) struct process name = { NULL, strname, \
process_thread_##name }
/** @} */ /** @} */