7.6. The get_event function

       prototype:
        static int my_get_event(void *hnd, struct oh_event *event, struct timeval *timeout) 
    


The get_event function currently gets called from the openhpi infrastructure library to retrieve a plug-in's (openhpi) events.

This function would typically loop over the eventq of the plug-in instance and copy the event's data field (currently a GSList) into event which gets processed by the openhpi library based on the event type and eventually added to the RPT table.

The timeoutparameter is used wait for an event until timeout. If set to zero (currently) it will return once the call is done.

Note

Note that currently there is on domain (SAHPI_DEFAULT_DOMAIN_ID) and one global RPT table where all reported resources from all plug-ins are stored.