43#define FRAME_ENDED 0x8000 
   53    if (fread(&ts, 1, 
sizeof(ts), s->
f) != 
sizeof(ts)) {
 
 
   69    if ((res = fread(&
len, 1, 
sizeof(
len), s->
f)) != 
sizeof(
len))
 
   90    if ((res = fread(&ts, 1, 
sizeof(ts), s->
f)) == 
sizeof(ts)) {
 
   92        *whennext = fs->
lastts * 4/45;
 
 
  107    if ((res = fwrite(&ts, 1, 
sizeof(ts), s->
f)) != 
sizeof(ts)) {
 
  112    if ((res = fwrite(&
len, 1, 
sizeof(
len), s->
f)) != 
sizeof(
len)) {
 
 
  134    if ((fd = fileno(fs->
f)) < 0) {
 
  138    if ((cur = ftello(fs->
f)) < 0) {
 
  143    return ftruncate(fd, cur);
 
 
  148    off_t offset = ftell(fs->
f);
 
 
Asterisk main include file. File version handling, generic pbx functions.
Asterisk architecture endianess compatibility definitions.
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
#define AST_FRAME_SET_BUFFER(fr, _base, _ofs, _datalen)
#define AST_FRIENDLY_OFFSET
Offset into a frame's data buffer.
Asterisk module definitions.
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
@ AST_MODULE_SUPPORT_CORE
#define ASTERISK_GPL_KEY
The text the key() function should return.
@ AST_MODULE_LOAD_SUCCESS
@ AST_MODULE_LOAD_DECLINE
Module has failed to load, may be in an inconsistent state.
This structure is allocated by file.c in one chunk, together with buf_size and desc_size bytes of mem...
struct ast_frame fr
frame produced by read, typically
unsigned int frame_ending
struct ast_format * format
Data structure associated with a single frame of data.
struct ast_frame_subclass subclass
union ast_frame::@239 data