summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-05 10:32:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-05 10:32:20 +0000
commit0343834852edfdcbdfc8fc44c16e16a3fe525382 (patch)
treed0113a60495c2cb96276bee908b809e9a57b4037
parentfa1bce237a707c9447e0a660a4ea7eb22521c510 (diff)
downloadrockbox-0343834852edfdcbdfc8fc44c16e16a3fe525382.zip
rockbox-0343834852edfdcbdfc8fc44c16e16a3fe525382.tar.gz
rockbox-0343834852edfdcbdfc8fc44c16e16a3fe525382.tar.bz2
rockbox-0343834852edfdcbdfc8fc44c16e16a3fe525382.tar.xz
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
-rw-r--r--firmware/id3.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index 5761380..74f1d28 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -28,25 +28,10 @@
#include <string.h>
#include <errno.h>
#include <fcntl.h>
+#include <file.h>
+#include <types.h>
-struct mp3entry {
- 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
+#include "id3.h"
/* Some utility macros used in getsonglength() */
#define CHECKSYNC(x) (((x >> 21) & 0x07FF) == 0x7FF)