1
0
Fork 0
forked from len0rd/rockbox

Removed the sim_ prefix from the plugin api.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19704 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2009-01-07 09:53:46 +00:00
parent f9329e4c92
commit a36cdf5b37
12 changed files with 37 additions and 69 deletions

View file

@ -34,7 +34,6 @@
#include <stdbool.h>
#include <stdlib.h>
#include "config.h"
#include "kernel.h"
#include "system.h"
#include "metadata.h"
#include "audio.h"
@ -70,12 +69,6 @@
#endif
#ifdef SIMULATOR
#define PREFIX(_x_) sim_ ## _x_
#else
#define PREFIX(_x_) _x_
#endif
/* magic for normal codecs */
#define CODEC_MAGIC 0x52434F44 /* RCOD */
/* magic for encoder codecs */
@ -160,7 +153,7 @@ struct codec_api {
void (*configure)(int setting, intptr_t value);
/* kernel/ system */
void (*PREFIX(sleep))(int ticks);
void (*sleep)(int ticks);
void (*yield)(void);
#if NUM_CORES > 1
@ -227,10 +220,10 @@ struct codec_api {
size_t (*enc_unget_pcm_data)(size_t size);
/* file */
int (*PREFIX(open))(const char* pathname, int flags);
int (*open)(const char* pathname, int flags);
int (*close)(int fd);
ssize_t (*read)(int fd, void* buf, size_t count);
off_t (*PREFIX(lseek))(int fd, off_t offset, int whence);
off_t (*lseek)(int fd, off_t offset, int whence);
ssize_t (*write)(int fd, const void* buf, size_t count);
int (*round_value_to_list32)(unsigned long value,
const unsigned long list[],