Data Structures | |
struct | smd_module_t |
Typedefs | |
typedef smd_module_system_t | smd_module_system_t |
typedef sul_error_t *(* | smd_module_create_fn_t )(smd_module_system_t *modsys, sul_cfg_block_t *cfg, apr_pool_t *pool) |
typedef sul_error_t *(* | smd_module_destroy_fn_t )(apr_pool_t *pool) |
typedef smd_module_t | smd_module_t |
Functions | |
sul_error_t * | smd_modules_create (smd_module_system_t **self, sul_cfg_block_t *config, sos_fs_t *fs, apr_pool_t *pool) |
sul_error_t * | smd_modules_load (smd_module_system_t *modsys, smd_module_t *module, apr_pool_t *pool) |
sul_error_t * | smd_modules_destroy (smd_module_system_t *modsys) |
sul_cfg_block_t * | smd_modules_config (smd_module_system_t *modsys) |
sul_error_t * | moddynamic_module_load (smd_module_system_t *modsys, const char *name, apr_pool_t *pool) |
char * | smd_modules_cfg_path (const char *key, apr_pool_t *pool) |
|
Initialize module function pointer. When a module provides this method, and they always do usually, then it'll be called when the module is first loaded. |
|
Destroy/shutdown module function pointer. Called when the module is unloaded and should perform any module specific cleanup. |
|
Module system that handles the loading and runtime aspects of plugin modules for application. |
|
Each module in the system has a corresponding Module data structures that it gives to the Module system. It stores the various hooks for initialization as well as the modules DSO handle (if any), and other descriptive properties. |
|
|
|
Gets the configuration block for the Module System.
|
|
Creates a Module system in preparation of the loading of Modules. A few 'odd' parameters are fed to this method just because they should be made available to the Modules as they're loaded.
|
|
Destroys the Module system and unloads any loaded Modules. When a Module is unloaded its Destroy method is invoked.
|
|
Loads a Module and invokes its Initialize function. Modules will only be loaded before they're unloaded and only unloaded after their loaded.
|