forked from len0rd/rockbox
include file.h (important for the x11 sim to work) and types.h (as that
already has a bool type and TRUE/FALSE defines). Also now includes its own new id3.h for the struct definition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@431 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fa1bce237a
commit
0343834852
1 changed files with 3 additions and 18 deletions
|
|
@ -28,25 +28,10 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <file.h>
|
||||||
|
#include <types.h>
|
||||||
|
|
||||||
struct mp3entry {
|
#include "id3.h"
|
||||||
char *path;
|
|
||||||
char *title;
|
|
||||||
char *artist;
|
|
||||||
char *album;
|
|
||||||
int bitrate;
|
|
||||||
int frequency;
|
|
||||||
int id3v2len;
|
|
||||||
int id3v1len;
|
|
||||||
int filesize; /* in bytes */
|
|
||||||
int length; /* song length */
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct mp3entry mp3entry;
|
|
||||||
|
|
||||||
typedef unsigned char bool;
|
|
||||||
#define TRUE 1
|
|
||||||
#define FALSE 0
|
|
||||||
|
|
||||||
/* Some utility macros used in getsonglength() */
|
/* Some utility macros used in getsonglength() */
|
||||||
#define CHECKSYNC(x) (((x >> 21) & 0x07FF) == 0x7FF)
|
#define CHECKSYNC(x) (((x >> 21) & 0x07FF) == 0x7FF)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue