Changed the parameter 'char * data' of process_start to the
type process_data_t. This was an artifact when the choice was made to use the void * type for the data parameter in processes. Changed parameter 'void * data' of process_post_synch to process_data_t for consistency. Checked all the uses of process_start() in contiki and fixed casts of the data parameter.
This commit is contained in:
parent
cff30a394b
commit
1058ea986a
14 changed files with 18 additions and 18 deletions
|
@ -339,7 +339,7 @@ struct process {
|
|||
* process
|
||||
*
|
||||
*/
|
||||
CCIF void process_start(struct process *p, const char *arg);
|
||||
CCIF void process_start(struct process *p, process_data_t data);
|
||||
|
||||
/**
|
||||
* Post an asynchronous event.
|
||||
|
@ -362,7 +362,7 @@ CCIF void process_start(struct process *p, const char *arg);
|
|||
* \retval PROCESS_ERR_FULL The event queue was full and the event could
|
||||
* not be posted.
|
||||
*/
|
||||
CCIF int process_post(struct process *p, process_event_t ev, void* data);
|
||||
CCIF int process_post(struct process *p, process_event_t ev, process_data_t data);
|
||||
|
||||
/**
|
||||
* Post a synchronous event to a process.
|
||||
|
@ -375,7 +375,7 @@ CCIF int process_post(struct process *p, process_event_t ev, void* data);
|
|||
* with the event.
|
||||
*/
|
||||
CCIF void process_post_synch(struct process *p,
|
||||
process_event_t ev, void* data);
|
||||
process_event_t ev, process_data_t data);
|
||||
|
||||
/**
|
||||
* \brief Cause a process to exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue