ReactOS  0.4.14-dev-552-g2fad488
lfs_alias.c File Reference
#include "config.h"
#include "compat.h"
#include "abi_align.h"
Include dependency graph for lfs_alias.c:

Go to the source code of this file.

Macros

#define MACROCAT_REALLY(a, b)   a ## b
 
#define MACROCAT(a, b)   MACROCAT_REALLY(a, b)
 
#define NATIVE_SUFFIX   MACROCAT(_, _FILE_OFFSET_BITS)
 
#define NATIVE_NAME(func)   MACROCAT(func, NATIVE_SUFFIX)
 
#define ALIAS_NAME(func)   func
 

Typedefs

typedef struct mpg123_handle_struct mpg123_handle
 

Functions

int NATIVE_NAME() mpg123_open (mpg123_handle *mh, const char *path)
 
int NATIVE_NAME() mpg123_open_fd (mpg123_handle *mh, int fd)
 
int NATIVE_NAME() mpg123_open_handle (mpg123_handle *mh, void *iohandle)
 
int NATIVE_NAME() mpg123_decode_frame (mpg123_handle *mh, lfs_alias_t *num, unsigned char **audio, size_t *bytes)
 
int NATIVE_NAME() mpg123_framebyframe_decode (mpg123_handle *mh, lfs_alias_t *num, unsigned char **audio, size_t *bytes)
 
lfs_alias_t NATIVE_NAME() mpg123_framepos (mpg123_handle *mh)
 
lfs_alias_t NATIVE_NAME() mpg123_tell (mpg123_handle *mh)
 
lfs_alias_t NATIVE_NAME() mpg123_tellframe (mpg123_handle *mh)
 
lfs_alias_t NATIVE_NAME() mpg123_tell_stream (mpg123_handle *mh)
 
lfs_alias_t NATIVE_NAME() mpg123_seek (mpg123_handle *mh, lfs_alias_t sampleoff, int whence)
 
lfs_alias_t NATIVE_NAME() mpg123_feedseek (mpg123_handle *mh, lfs_alias_t sampleoff, int whence, lfs_alias_t *input_offset)
 
lfs_alias_t NATIVE_NAME() mpg123_seek_frame (mpg123_handle *mh, lfs_alias_t frameoff, int whence)
 
lfs_alias_t NATIVE_NAME() mpg123_timeframe (mpg123_handle *mh, double sec)
 
int NATIVE_NAME() mpg123_index (mpg123_handle *mh, lfs_alias_t **offsets, lfs_alias_t *step, size_t *fill)
 
int NATIVE_NAME() mpg123_set_index (mpg123_handle *mh, lfs_alias_t *offsets, lfs_alias_t step, size_t fill)
 
int NATIVE_NAME() mpg123_position (mpg123_handle *mh, lfs_alias_t frame_offset, lfs_alias_t buffered_bytes, lfs_alias_t *current_frame, lfs_alias_t *frames_left, double *current_seconds, double *seconds_left)
 
lfs_alias_t NATIVE_NAME() mpg123_framelength (mpg123_handle *mh)
 
lfs_alias_t NATIVE_NAME() mpg123_length (mpg123_handle *mh)
 
int NATIVE_NAME() mpg123_set_filesize (mpg123_handle *mh, lfs_alias_t size)
 
int NATIVE_NAME() mpg123_replace_reader (mpg123_handle *mh, ssize_t(*r_read)(int, void *, size_t), lfs_alias_t(*r_lseek)(int, lfs_alias_t, int))
 
int NATIVE_NAME() mpg123_replace_reader_handle (mpg123_handle *mh, ssize_t(*r_read)(void *, void *, size_t), lfs_alias_t(*r_lseek)(void *, lfs_alias_t, int), void(*cleanup)(void *))
 

Macro Definition Documentation

◆ ALIAS_NAME

#define ALIAS_NAME (   func)    func

Definition at line 53 of file lfs_alias.c.

◆ MACROCAT

#define MACROCAT (   a,
  b 
)    MACROCAT_REALLY(a, b)

Definition at line 44 of file lfs_alias.c.

◆ MACROCAT_REALLY

#define MACROCAT_REALLY (   a,
  b 
)    a ## b

Definition at line 43 of file lfs_alias.c.

◆ NATIVE_NAME

#define NATIVE_NAME (   func)    MACROCAT(func, NATIVE_SUFFIX)

Definition at line 52 of file lfs_alias.c.

◆ NATIVE_SUFFIX

#define NATIVE_SUFFIX   MACROCAT(_, _FILE_OFFSET_BITS)

Definition at line 51 of file lfs_alias.c.

Typedef Documentation

◆ mpg123_handle

Definition at line 66 of file lfs_alias.c.

Function Documentation

◆ mpg123_decode_frame()

int NATIVE_NAME() mpg123_decode_frame ( mpg123_handle mh,
lfs_alias_t num,
unsigned char **  audio,
size_t bytes 
)

Definition at line 122 of file lfs_alias.c.

123 {
124  return NATIVE_NAME(mpg123_decode_frame)(mh, num, audio, bytes);
125 }
int NATIVE_NAME() mpg123_decode_frame(mpg123_handle *mh, lfs_alias_t *num, unsigned char **audio, size_t *bytes)
Definition: lfs_alias.c:122
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
GLuint GLuint num
Definition: glext.h:9618
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_feedseek()

lfs_alias_t NATIVE_NAME() mpg123_feedseek ( mpg123_handle mh,
lfs_alias_t  sampleoff,
int  whence,
lfs_alias_t input_offset 
)

Definition at line 164 of file lfs_alias.c.

165 {
166  return NATIVE_NAME(mpg123_feedseek)(mh, sampleoff, whence, input_offset);
167 }
lfs_alias_t NATIVE_NAME() mpg123_feedseek(mpg123_handle *mh, lfs_alias_t sampleoff, int whence, lfs_alias_t *input_offset)
Definition: lfs_alias.c:164
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_framebyframe_decode()

int NATIVE_NAME() mpg123_framebyframe_decode ( mpg123_handle mh,
lfs_alias_t num,
unsigned char **  audio,
size_t bytes 
)

Definition at line 128 of file lfs_alias.c.

129 {
130  return NATIVE_NAME(mpg123_framebyframe_decode)(mh, num, audio, bytes);
131 }
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
int NATIVE_NAME() mpg123_framebyframe_decode(mpg123_handle *mh, lfs_alias_t *num, unsigned char **audio, size_t *bytes)
Definition: lfs_alias.c:128
GLuint GLuint num
Definition: glext.h:9618
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_index()

int NATIVE_NAME() mpg123_index ( mpg123_handle mh,
lfs_alias_t **  offsets,
lfs_alias_t step,
size_t fill 
)

Definition at line 182 of file lfs_alias.c.

183 {
184  return NATIVE_NAME(mpg123_index)(mh, offsets, step, fill);
185 }
int NATIVE_NAME() mpg123_index(mpg123_handle *mh, lfs_alias_t **offsets, lfs_alias_t *step, size_t *fill)
Definition: lfs_alias.c:182
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
Definition: _algobase.h:449
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_position()

int NATIVE_NAME() mpg123_position ( mpg123_handle mh,
lfs_alias_t  frame_offset,
lfs_alias_t  buffered_bytes,
lfs_alias_t current_frame,
lfs_alias_t frames_left,
double current_seconds,
double seconds_left 
)

Definition at line 194 of file lfs_alias.c.

195 {
196  return NATIVE_NAME(mpg123_position)(mh, frame_offset, buffered_bytes, current_frame, frames_left, current_seconds, seconds_left);
197 }
#define frame_offset
Definition: intsym.h:190
int NATIVE_NAME() mpg123_position(mpg123_handle *mh, lfs_alias_t frame_offset, lfs_alias_t buffered_bytes, lfs_alias_t *current_frame, lfs_alias_t *frames_left, double *current_seconds, double *seconds_left)
Definition: lfs_alias.c:194
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_replace_reader()

int NATIVE_NAME() mpg123_replace_reader ( mpg123_handle mh,
ssize_t(*)(int, void *, size_t r_read,
lfs_alias_t(*)(int, lfs_alias_t, int r_lseek 
)

Definition at line 218 of file lfs_alias.c.

219 {
220  return NATIVE_NAME(mpg123_replace_reader)(mh, r_read, r_lseek);
221 }
int NATIVE_NAME() mpg123_replace_reader(mpg123_handle *mh, ssize_t(*r_read)(int, void *, size_t), lfs_alias_t(*r_lseek)(int, lfs_alias_t, int))
Definition: lfs_alias.c:218
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_replace_reader_handle()

int NATIVE_NAME() mpg123_replace_reader_handle ( mpg123_handle mh,
ssize_t(*)(void *, void *, size_t r_read,
lfs_alias_t(*)(void *, lfs_alias_t, int r_lseek,
void(*)(void *)  cleanup 
)

Definition at line 224 of file lfs_alias.c.

225 {
226  return NATIVE_NAME(mpg123_replace_reader_handle)(mh, r_read, r_lseek, cleanup);
227 }
int NATIVE_NAME() mpg123_replace_reader_handle(mpg123_handle *mh, ssize_t(*r_read)(void *, void *, size_t), lfs_alias_t(*r_lseek)(void *, lfs_alias_t, int), void(*cleanup)(void *))
Definition: lfs_alias.c:224
char * cleanup(char *str)
Definition: wpickclick.c:99
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_seek()

lfs_alias_t NATIVE_NAME() mpg123_seek ( mpg123_handle mh,
lfs_alias_t  sampleoff,
int  whence 
)

Definition at line 158 of file lfs_alias.c.

159 {
160  return NATIVE_NAME(mpg123_seek)(mh, sampleoff, whence);
161 }
lfs_alias_t NATIVE_NAME() mpg123_seek(mpg123_handle *mh, lfs_alias_t sampleoff, int whence)
Definition: lfs_alias.c:158
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_seek_frame()

lfs_alias_t NATIVE_NAME() mpg123_seek_frame ( mpg123_handle mh,
lfs_alias_t  frameoff,
int  whence 
)

Definition at line 170 of file lfs_alias.c.

171 {
172  return NATIVE_NAME(mpg123_seek_frame)(mh, frameoff, whence);
173 }
lfs_alias_t NATIVE_NAME() mpg123_seek_frame(mpg123_handle *mh, lfs_alias_t frameoff, int whence)
Definition: lfs_alias.c:170
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_set_filesize()

int NATIVE_NAME() mpg123_set_filesize ( mpg123_handle mh,
lfs_alias_t  size 
)

Definition at line 212 of file lfs_alias.c.

213 {
214  return NATIVE_NAME(mpg123_set_filesize)(mh, size);
215 }
int NATIVE_NAME() mpg123_set_filesize(mpg123_handle *mh, lfs_alias_t size)
Definition: lfs_alias.c:212
GLsizeiptr size
Definition: glext.h:5919
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52

◆ mpg123_set_index()

int NATIVE_NAME() mpg123_set_index ( mpg123_handle mh,
lfs_alias_t offsets,
lfs_alias_t  step,
size_t  fill 
)

Definition at line 188 of file lfs_alias.c.

189 {
190  return NATIVE_NAME(mpg123_set_index)(mh, offsets, step, fill);
191 }
int NATIVE_NAME() mpg123_set_index(mpg123_handle *mh, lfs_alias_t *offsets, lfs_alias_t step, size_t fill)
Definition: lfs_alias.c:188
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
Definition: _algobase.h:449
#define NATIVE_NAME(func)
Definition: lfs_alias.c:52