4 /************************************************************************
5 * do not add code to this header
6 ************************************************************************/
9 * Define the DOL process handler scheme.
10 * - Local variables are defined in structure LocalState. Local
11 * variables may vary from different processes.
12 * - The ProcessInit function pointer points to a function which
13 * initializes a process.
14 * - The ProcessFire function pointer points to a function which
15 * performs the actual computation. The communication between
16 * processes is inside the ProcessFire function.
17 * - The WPTR is a placeholder for callback. One can just
21 //structure for local memory of process
22 typedef struct _local_states *LocalState;
24 //additional behavioral functions could be declared here
25 typedef void (*ProcessInit)(struct _process*);
26 typedef int (*ProcessFire)(struct _process*);
32 typedef struct _process {
36 WPTR wptr; //placeholder for wrapper instance