hnm_module

Structure that represents an event-source module.

Synopsis:

struct hnm_module hnm_Module {
    struct pollfd * poll_entry ;
    hnm_EventSource event_source ;
    hnm_Module * next ;
};

Data:

struct pollfd * poll_entry

The entry in a poll list that is used to poll events on the module.

hnm_EventSource event_source

The event source that is plugged into the HNM via the current module instance.

hnm_Module * next

The next module in the list.

Library:

libhnm

Description:

Event-source modules are represented by a module type that encloses a definition of the specific event-source data and callbacks. This data structure also provides a mechanism to chain the modules in a list.