Sat Aug 6 00:40:09 2011

Asterisk developer's documentation


mohclass Struct Reference


Data Fields

int allowed_files
char args [256]
unsigned int delete:1
unsigned int deprecated:1
char dir [256]
char ** filearray
unsigned int flags
int format
struct {
   mohclass *   next
list
struct {
   mohdata *   first
   mohdata *   last
members
char mode [80]
char name [MAX_MUSICCLASS]
int pid
int pseudofd
int srcfd
time_t start
pthread_t thread
int total_files

Detailed Description

Definition at line 136 of file res_musiconhold.c.


Field Documentation

int allowed_files

The current size of the filearray

Definition at line 144 of file res_musiconhold.c.

Referenced by moh_add_file().

char args[256]

Definition at line 139 of file res_musiconhold.c.

Referenced by init_files_class(), load_moh_classes(), and spawn_mp3().

unsigned int delete

Definition at line 158 of file res_musiconhold.c.

Referenced by moh_register().

unsigned int deprecated

Definition at line 159 of file res_musiconhold.c.

char dir[256]

Definition at line 138 of file res_musiconhold.c.

Referenced by init_files_class(), moh_scan_files(), and spawn_mp3().

char** filearray

A dynamically sized array to hold the list of filenames in "files" mode

Definition at line 142 of file res_musiconhold.c.

Referenced by ast_moh_files_next(), moh_add_file(), and moh_scan_files().

struct mohdata* first

Definition at line 160 of file res_musiconhold.c.

unsigned int flags

Definition at line 147 of file res_musiconhold.c.

Referenced by get_mohbyname().

int format

The format from the MOH source, not applicable to "files" mode

Definition at line 149 of file res_musiconhold.c.

Referenced by moh_class_malloc(), and mohalloc().

struct mohdata* last

Definition at line 160 of file res_musiconhold.c.

struct { ... } list

struct { ... } members

Referenced by mohalloc().

char mode[80]

Definition at line 140 of file res_musiconhold.c.

Referenced by init_app_class().

char name[MAX_MUSICCLASS]

Definition at line 137 of file res_musiconhold.c.

Referenced by ast_moh_files_next(), get_mohbyname(), and init_files_class().

struct mohclass* next

Definition at line 161 of file res_musiconhold.c.

int pid

The pid of the external application delivering MOH

Definition at line 151 of file res_musiconhold.c.

Referenced by spawn_mp3().

int pseudofd

FD for timing source

Definition at line 157 of file res_musiconhold.c.

Referenced by init_app_class().

int srcfd

Source of audio

Definition at line 155 of file res_musiconhold.c.

time_t start

Definition at line 152 of file res_musiconhold.c.

Referenced by spawn_mp3().

pthread_t thread

Definition at line 153 of file res_musiconhold.c.

Referenced by init_app_class().

int total_files

The current number of files loaded into the filearray

Definition at line 146 of file res_musiconhold.c.

Referenced by ast_moh_files_next(), local_ast_moh_start(), moh_add_file(), and moh_scan_files().


The documentation for this struct was generated from the following file:
Generated on Sat Aug 6 00:40:09 2011 for Asterisk - the Open Source PBX by  doxygen 1.4.7