Return to previous page | Return to menu | Go to next page


Structure

EVENT

Event management

Structure

typedef   struct    evnt {
                    WORK *work ;
                    struct evnt *next ;
                    struct evnt *before ;
                    void (*exad)() ;
                    Uint8 user[EVENT_SIZE - (sizeof(WORK *)
                                     + sizeof(struct evnt *) * 2 + sizeof(void (*)()))] ;
          } EVENT ;

Member

work Pointer of work area
next Start address of next event
before Start address of the previous event
Execution address of (exad) () function
user [] work area

Description

Define the event management table.
Set the address obtained by the library function “slGetWork” for the member “work”.
The default is “NULL”.

Remarks

“EVENT_SIZE” in member “user []” is 128 bytes.
Therefore, the user area is 112 bytes.

Reference: Chapter 10 Event Control

EVENT


Return to previous page | Return to menu | Go to next page