4 //structure for local memory of process
5 typedef struct _local_states *LocalState;
7 //structure for process
11 typedef void (*ProcessInit)(struct _process*);
12 typedef int (*ProcessFire)(struct _process*);
15 typedef struct _process {
22 void DOL_read(void *port, void *buf, int len, DOLProcess *process);
23 void DOL_write(void *port, void *buf, int len, DOLProcess *process);
24 void DOL_detach(DOLProcess *process);
25 int getIndex(const char* string, char* tokens, int indexNumber);
26 int *createPort(int *port, int base, int number_of_indices, int index_range_pairs, ...);