48 #define BUF_SIZE 32768 50 #define FRAME_ENDED 0x8000 61 if (fread(&ts, 1,
sizeof(ts), s->
f) !=
sizeof(ts)) {
77 if ((res = fread(&len, 1,
sizeof(len), s->
f)) !=
sizeof(
len))
98 if ((res = fread(&ts, 1,
sizeof(ts), s->
f)) ==
sizeof(ts)) {
100 *whennext = fs->
lastts * 4/45;
114 if ((res = fwrite(&ts, 1,
sizeof(ts), fs->
f)) !=
sizeof(ts)) {
118 len = htons(f->
datalen | mark);
119 if ((res = fwrite(&len, 1,
sizeof(len), fs->
f)) !=
sizeof(len)) {
141 if ((fd = fileno(fs->
f)) < 0) {
145 if ((cur = ftello(fs->
f)) < 0) {
150 return ftruncate(fd, cur);
155 off_t offset = ftello(fs->
f);
Asterisk main include file. File version handling, generic pbx functions.
struct ast_frame_subclass subclass
#define AST_FRIENDLY_OFFSET
Offset into a frame's data buffer.
Asterisk architecture endianess compatibility definitions.
struct ast_frame fr
frame produced by read, typically
#define AST_FRAME_SET_BUFFER(fr, _base, _ofs, _datalen)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
unsigned int frame_ending
Module has failed to load, may be in an inconsistent state.
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS|AST_MODFLAG_LOAD_ORDER, "HTTP Phone Provisioning",.support_level=AST_MODULE_SUPPORT_EXTENDED,.load=load_module,.unload=unload_module,.reload=reload,.load_pri=AST_MODPRI_CHANNEL_DEPEND,.requires="http",)
This structure is allocated by file.c in one chunk, together with buf_size and desc_size bytes of mem...
Data structure associated with a single frame of data.
union ast_frame::@263 data
struct ast_format * format
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.