ReactOS 0.4.16-dev-300-g2aadf2e
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_fixed (mpg123_handle *mh, const char *path, int channels, int encoding)
 
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 130 of file lfs_alias.c.

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

Referenced by mpg123_decode_frame().

◆ 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 172 of file lfs_alias.c.

173{
174 return NATIVE_NAME(mpg123_feedseek)(mh, sampleoff, whence, input_offset);
175}
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:172

Referenced by mpg123_feedseek().

◆ 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 136 of file lfs_alias.c.

137{
138 return NATIVE_NAME(mpg123_framebyframe_decode)(mh, num, audio, bytes);
139}
int NATIVE_NAME() mpg123_framebyframe_decode(mpg123_handle *mh, lfs_alias_t *num, unsigned char **audio, size_t *bytes)
Definition: lfs_alias.c:136

Referenced by mpg123_framebyframe_decode().

◆ mpg123_index()

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

Definition at line 190 of file lfs_alias.c.

191{
192 return NATIVE_NAME(mpg123_index)(mh, offsets, step, fill);
193}
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
Definition: _algobase.h:449
static const FxOffsetAndName offsets[]
int NATIVE_NAME() mpg123_index(mpg123_handle *mh, lfs_alias_t **offsets, lfs_alias_t *step, size_t *fill)
Definition: lfs_alias.c:190

Referenced by mpg123_index().

◆ 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 202 of file lfs_alias.c.

203{
204 return NATIVE_NAME(mpg123_position)(mh, frame_offset, buffered_bytes, current_frame, frames_left, current_seconds, seconds_left);
205}
#define frame_offset
Definition: intsym.h:201
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:202

Referenced by mpg123_position().

◆ 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 226 of file lfs_alias.c.

227{
228 return NATIVE_NAME(mpg123_replace_reader)(mh, r_read, r_lseek);
229}
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:226

Referenced by mpg123_replace_reader().

◆ 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 232 of file lfs_alias.c.

233{
234 return NATIVE_NAME(mpg123_replace_reader_handle)(mh, r_read, r_lseek, cleanup);
235}
static void cleanup(void)
Definition: main.c:1335
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:232

Referenced by mpg123_replace_reader_handle().

◆ mpg123_seek()

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

Definition at line 166 of file lfs_alias.c.

167{
168 return NATIVE_NAME(mpg123_seek)(mh, sampleoff, whence);
169}
lfs_alias_t NATIVE_NAME() mpg123_seek(mpg123_handle *mh, lfs_alias_t sampleoff, int whence)
Definition: lfs_alias.c:166

Referenced by mpg123_seek().

◆ mpg123_seek_frame()

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

Definition at line 178 of file lfs_alias.c.

179{
180 return NATIVE_NAME(mpg123_seek_frame)(mh, frameoff, whence);
181}
lfs_alias_t NATIVE_NAME() mpg123_seek_frame(mpg123_handle *mh, lfs_alias_t frameoff, int whence)
Definition: lfs_alias.c:178

Referenced by mpg123_seek_frame().

◆ mpg123_set_filesize()

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

Definition at line 220 of file lfs_alias.c.

221{
223}
GLsizeiptr size
Definition: glext.h:5919
int NATIVE_NAME() mpg123_set_filesize(mpg123_handle *mh, lfs_alias_t size)
Definition: lfs_alias.c:220

Referenced by mpg123_set_filesize().

◆ 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 196 of file lfs_alias.c.

197{
198 return NATIVE_NAME(mpg123_set_index)(mh, offsets, step, fill);
199}
int NATIVE_NAME() mpg123_set_index(mpg123_handle *mh, lfs_alias_t *offsets, lfs_alias_t step, size_t fill)
Definition: lfs_alias.c:196

Referenced by mpg123_set_index().