Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
ast_module Struct Reference

Data Fields

struct ast_vector_string enhances
 
struct {
   struct ast_module *   first
 
   struct ast_module *   last
 
entry
 
struct {
   unsigned int   builtin:1
 
   unsigned int   declined:1
 
   unsigned int   keepuntilshutdown:1
 
   unsigned int   preload:1
 
   unsigned int   required:1
 
   unsigned int   running:1
 
flags
 
const struct ast_module_infoinfo
 
void * lib
 
struct ast_vector_string optional_modules
 
void * ref_debug
 
struct module_vector reffed_deps
 Vector holding pointers to modules we have a reference to. More...
 
struct ast_vector_string requires
 
char resource [0]
 
int usecount
 
struct module_user_list users
 

Detailed Description

Definition at line 293 of file loader.c.

Field Documentation

unsigned int builtin

The module is built-in.

Definition at line 326 of file loader.c.

unsigned int declined

The module has declined to start.

Definition at line 322 of file loader.c.

Referenced by ast_load_resource(), ast_module_reload(), auto_unload_resource(), load_modules(), load_resource(), and modules_shutdown().

struct ast_vector_string enhances

List of modules this enhances.

Definition at line 309 of file loader.c.

unsigned int keepuntilshutdown

This module is being held open until it's time to shutdown.

Definition at line 324 of file loader.c.

Referenced by modules_shutdown().

void* lib

The shared lib.

Definition at line 298 of file loader.c.

Referenced by is_module_loaded().

struct ast_vector_string optional_modules

List of optional api modules.

Definition at line 307 of file loader.c.

unsigned int preload

This module is marked for preload.

Definition at line 330 of file loader.c.

Referenced by load_resource().

void* ref_debug

Used to get module references into refs log

Definition at line 296 of file loader.c.

struct module_vector reffed_deps

Vector holding pointers to modules we have a reference to.

When one module requires another, the required module gets added to this list with a reference.

Definition at line 317 of file loader.c.

Referenced by graceful_unload_possible().

unsigned int required

The admin has declared this module is required.

Definition at line 328 of file loader.c.

Referenced by load_resource().

struct ast_vector_string requires

List of required module names.

Definition at line 305 of file loader.c.

unsigned int running

The module running and ready to accept requests.

Definition at line 320 of file loader.c.

Referenced by ast_module_reload(), ast_update_module_list_data(), auto_unload_resource(), load_modules(), load_resource(), and modules_shutdown().

int usecount

Number of 'users' and other references currently holding the module.

Definition at line 300 of file loader.c.

Referenced by ast_update_module_list_data(), auto_unload_resource(), graceful_unload_possible(), and modules_shutdown().

List of users holding the module.

Definition at line 302 of file loader.c.


The documentation for this struct was generated from the following file: