Simulator Code Flow
- sim_open
- - checks entity root - initializes
- - rptable - for storing resources and rdrs - asyncq - for storing events for sim_event_get
- populates rptable with resources from sim_resources.c/h - - all resources must include a "new" flag in their (void*)data struct. New will be set to 1 during this initial popluation.
- returns state pointer
- sim_discover
- - for all "new" resources, create add events, add them to event q
- sim_get_event
- - send up events for each item in event q
OpenHPI/Plugins/Dummy2/CodeFlow (last edited 2005-02-24 20:59:11 by bi-02pt1)