PTlink IRC Services

Generic Modules Specification

Interface functions

A module can implement any custom function to be specified at the load time, the following names should be reserver for generic purposes:

mod_install

Run install code needed for the module to work properly

mod_load

Load and runs the module main function

If the module is being installed for the first time mod_install will be called

If the installed module major version is older mod_upgrade will be called

If the installed module is newer display a warning

mod_unload

Unload the module, make sure you free all the resources used by the module

mod_remove

Remove the module and delete any associated data

Interface structures

A module can implement any custom function to be specified at the load time, the following names should be reserver for generic purposes:

mod_requires

List of functions the module requires

mod_dconf

List of dconf settings for this module

mod_provides

List of functions the module provides

Please note that functions starting with ev_* are treated as events and should always be pointers to handles (integers), they will have a different processing.

PTlink IRC Services 3 (Technical Documentation)	Generic Module Specification

2004-12-09T18:28:32