24#ifndef XINE_INPUT_HELPER_H
25#define XINE_INPUT_HELPER_H
108 case SEEK_SET:
break;
109 case SEEK_CUR: offset += curpos;
break;
110 case SEEK_END: offset = (length <= 0) ? (-1) : (offset + length);
break;
111 default: offset = -1;
break;
114 if (offset < 0 || (length > 0 && offset > length)) {
125#define MAX_SKIP_BYTES (10*1024*1024)
129 const off_t max =
sizeof(buf);
139 off_t got =
input->read(
input, buf, (bytes > max) ? max : bytes);
153 off_t *curpos, off_t length, off_t preview_size)
160 if (offset <= preview_size && *curpos <= preview_size) {
166 if (offset < *curpos)
static int input(void)
Definition goomsl_lex.c:1495
Definition configfile.h:83
_xine_arg_type_t type
Definition xine.c:1574
#define _x_assert(exp)
Definition xineutils.h:571