hnm_register_module()

Register the specified event source as a module of the HNM subsystem.

Synopsis:

#include <hnm/event-source.h>
 
hnm_Module* hnm_register_module(hnm_EventSource *event_source, void *private_data)

Arguments:

event_source

The event source being registered as a module with the HNM subsystem.

private_data

The private data to associate with the event source.

Library:

libhnm

Description:

Modules that wish to register with the HNM subsystem must call the hnm_register_module() function. This function adds the module to the list of managed event sources associated with the HNM subsystem. The new module is added to the front of the list of registered modules. This function is defined in the HNM subsystem's scope.

Returns:

A pointer to the hnm_module structure that is created to manage the specified event source.