10 #ifndef LIBOPENMPT_STREAM_CALLBACKS_FILE_H
11 #define LIBOPENMPT_STREAM_CALLBACKS_FILE_H
42 retval = fread( dst, 1, bytes, f );
77 return _fseeki64( f, offset, fwhence ) ? -1 : 0;
78 #elif defined(_POSIX_SOURCE) && (_POSIX_SOURCE == 1)
79 return fseeko( f, offset, fwhence ) ? -1 : 0;
81 return fseek( f, offset, fwhence ) ? -1 : 0;
93 retval = _ftelli64( f );
94 #elif defined(_POSIX_SOURCE) && (_POSIX_SOURCE == 1)
static int openmpt_stream_file_seek_func(void *stream, int64_t offset, int whence)
Definition: libopenmpt_stream_callbacks_file.h:49
#define OPENMPT_STREAM_SEEK_CUR
Definition: libopenmpt.h:138
static openmpt_stream_callbacks openmpt_stream_get_file_callbacks(void)
Definition: libopenmpt_stream_callbacks_file.h:105
#define OPENMPT_STREAM_SEEK_SET
Definition: libopenmpt.h:137
static size_t openmpt_stream_file_read_func(void *stream, void *dst, size_t bytes)
Definition: libopenmpt_stream_callbacks_file.h:35
openmpt_stream_tell_func tell
Tell callback.
Definition: libopenmpt.h:197
#define OPENMPT_STREAM_SEEK_END
Definition: libopenmpt.h:139
Stream callbacks.
Definition: libopenmpt.h:177
static int64_t openmpt_stream_file_tell_func(void *stream)
Definition: libopenmpt_stream_callbacks_file.h:85
openmpt_stream_read_func read
Read callback.
Definition: libopenmpt.h:183
openmpt_stream_seek_func seek
Seek callback.
Definition: libopenmpt.h:190