Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
ast_filestream Struct Reference

This structure is allocated by file.c in one chunk, together with buf_size and desc_size bytes of memory to be used for private purposes (e.g. buffers etc.) More...

#include <mod_format.h>

Collaboration diagram for ast_filestream:
Collaboration graph
[legend]

Data Fields

void * _private
 
char * buf
 
FILE * f
 
char * filename
 
int flags
 
struct ast_format_deffmt
 
struct ast_frame fr
 frame produced by read, typically More...
 
int lasttimeout
 
struct ast_formatlastwriteformat
 
mode_t mode
 
char * open_filename
 
const char * orig_chan_name
 
struct ast_channelowner
 
char * realfilename
 
struct ast_tranlator_pvt * tr
 
struct ast_trans_pvttrans
 
struct ast_filestreamvfs
 
char * write_buffer
 

Detailed Description

This structure is allocated by file.c in one chunk, together with buf_size and desc_size bytes of memory to be used for private purposes (e.g. buffers etc.)

Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 101 of file mod_format.h.

Field Documentation

◆ _private

void* _private

◆ buf

char* buf

◆ f

FILE* f

◆ filename

char* filename

◆ flags

int flags

Definition at line 104 of file mod_format.h.

Referenced by ast_readfile(), ast_writefile(), and ast_writestream().

◆ fmt

struct ast_format_def* fmt

◆ fr

struct ast_frame fr

◆ lasttimeout

int lasttimeout

Definition at line 115 of file mod_format.h.

Referenced by ast_readaudio_callback(), ast_readvideo_callback(), and filehelper().

◆ lastwriteformat

struct ast_format* lastwriteformat

Definition at line 114 of file mod_format.h.

Referenced by ast_writestream(), and filestream_destructor().

◆ mode

mode_t mode

Definition at line 105 of file mod_format.h.

Referenced by ast_readfile(), ast_writefile(), ast_writestream(), and wav_close().

◆ open_filename

char* open_filename

Definition at line 106 of file mod_format.h.

◆ orig_chan_name

const char* orig_chan_name

◆ owner

struct ast_channel* owner

◆ realfilename

char* realfilename

Definition at line 108 of file mod_format.h.

Referenced by ast_writefile(), and filestream_destructor().

◆ tr

struct ast_tranlator_pvt* tr

Definition at line 113 of file mod_format.h.

◆ trans

struct ast_trans_pvt* trans

Transparently translate from another format – just once

Definition at line 112 of file mod_format.h.

Referenced by ast_readfile(), ast_writefile(), ast_writestream(), filehelper(), and filestream_destructor().

◆ vfs

struct ast_filestream* vfs

◆ write_buffer

char* write_buffer

Definition at line 126 of file mod_format.h.

Referenced by ast_writefile(), and filestream_destructor().


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