Fri Jul 3 20:40:51 2009

Asterisk developer's documentation


mohclass Struct Reference

Collaboration diagram for mohclass:

Collaboration graph
[legend]

Data Fields

int allowed_files
char args [256]
unsigned int delete:1
char dir [256]
char ** filearray
unsigned int flags
int format
int inuse
struct {
   struct mohclass *   next
} list
struct {
   struct mohdata *   first
   struct 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 129 of file res_musiconhold.c.


Field Documentation

The current size of the filearray

Definition at line 137 of file res_musiconhold.c.

char args[256]

Definition at line 132 of file res_musiconhold.c.

Referenced by load_moh_classes(), and moh_register().

unsigned int delete

Definition at line 153 of file res_musiconhold.c.

Referenced by init_classes(), moh_files_release(), moh_register(), and moh_release().

char dir[256]

Definition at line 131 of file res_musiconhold.c.

Referenced by moh_register(), and spawn_mp3().

char** filearray

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

Definition at line 135 of file res_musiconhold.c.

Referenced by ast_moh_files_next().

struct mohdata* first [read]

Definition at line 154 of file res_musiconhold.c.

unsigned int flags

Definition at line 140 of file res_musiconhold.c.

Referenced by mohalloc().

int format

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

Definition at line 142 of file res_musiconhold.c.

Referenced by moh_class_malloc(), moh_generate(), and mohalloc().

int inuse

struct mohdata* last [read]

Definition at line 154 of file res_musiconhold.c.

struct { ... } list

struct { ... } members

Referenced by moh_release(), and mohalloc().

char mode[80]

Definition at line 133 of file res_musiconhold.c.

Referenced by moh_register().

char name[MAX_MUSICCLASS]

Definition at line 130 of file res_musiconhold.c.

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

struct mohclass* next [read]

Definition at line 155 of file res_musiconhold.c.

int pid

The pid of the external application delivering MOH

Definition at line 144 of file res_musiconhold.c.

Referenced by ast_moh_destroy_one(), and moh_generate().

int pseudofd

FD for timing source

Definition at line 150 of file res_musiconhold.c.

Referenced by moh_register().

int srcfd

Source of audio

Definition at line 148 of file res_musiconhold.c.

Referenced by ast_moh_destroy_one(), and moh_register().

time_t start

Definition at line 145 of file res_musiconhold.c.

Referenced by moh_register().

pthread_t thread

Definition at line 146 of file res_musiconhold.c.

Referenced by moh_register().

The current number of files loaded into the filearray

Definition at line 139 of file res_musiconhold.c.

Referenced by ast_moh_files_next(), and local_ast_moh_start().


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

Generated on Fri Jul 3 20:40:51 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.9