summaryrefslogtreecommitdiff
path: root/apps/tagdb
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-10-25 10:17:57 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-10-25 10:17:57 +0000
commit710ccb7b483da9be9543ea40a99dee7fd6f8fa98 (patch)
treec2e06245a5c91bc1680fe3a033a44e4220fcc459 /apps/tagdb
parent22dfcdb3eca609a920787a154f758b54dd38a550 (diff)
downloadrockbox-710ccb7b483da9be9543ea40a99dee7fd6f8fa98.zip
rockbox-710ccb7b483da9be9543ea40a99dee7fd6f8fa98.tar.gz
rockbox-710ccb7b483da9be9543ea40a99dee7fd6f8fa98.tar.bz2
rockbox-710ccb7b483da9be9543ea40a99dee7fd6f8fa98.tar.xz
ifdef all the tagcache code, allows rombox to be compiled again, Thanks Austin Appel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11338 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagdb')
-rw-r--r--apps/tagdb/album.c2
-rw-r--r--apps/tagdb/album.h2
-rw-r--r--apps/tagdb/array_buffer.c3
-rw-r--r--apps/tagdb/array_buffer.h2
-rw-r--r--apps/tagdb/artist.c2
-rw-r--r--apps/tagdb/artist.h2
-rw-r--r--apps/tagdb/config.h2
-rw-r--r--apps/tagdb/db.c2
-rw-r--r--apps/tagdb/db.h2
-rw-r--r--apps/tagdb/file.c2
-rw-r--r--apps/tagdb/file.h2
-rw-r--r--apps/tagdb/header.c3
-rw-r--r--apps/tagdb/header.h2
-rw-r--r--apps/tagdb/main.c2
-rw-r--r--apps/tagdb/malloc.c2
-rw-r--r--apps/tagdb/malloc.h2
-rw-r--r--apps/tagdb/parser.c2
-rw-r--r--apps/tagdb/song.c2
-rw-r--r--apps/tagdb/song.h2
-rw-r--r--apps/tagdb/tag_dummy.c2
-rw-r--r--apps/tagdb/tag_dummy.h2
-rw-r--r--apps/tagdb/unique.c2
-rw-r--r--apps/tagdb/unique.h2
23 files changed, 46 insertions, 2 deletions
diff --git a/apps/tagdb/album.c b/apps/tagdb/album.c
index 53b3660..0c06329 100644
--- a/apps/tagdb/album.c
+++ b/apps/tagdb/album.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include "malloc.h" // realloc() and free()
#include <strings.h> // strncasecmp()
#include <string.h> // strlen()
@@ -452,3 +453,4 @@ int album_entry_add_song_file(FILE *fd, struct album_entry *e, struct album_size
return ERR_NO_INPLACE_UPDATE;
}
+#endif
diff --git a/apps/tagdb/album.h b/apps/tagdb/album.h
index 08995a2..3f4eacd 100644
--- a/apps/tagdb/album.h
+++ b/apps/tagdb/album.h
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#ifndef __ALBUM_H__
#define __ALBUM_H__
@@ -101,3 +102,4 @@ int album_entry_add_song_file(FILE *fd, struct album_entry *e, struct album_size
*/
#endif
+#endif
diff --git a/apps/tagdb/array_buffer.c b/apps/tagdb/array_buffer.c
index 24772d6..2b8b017 100644
--- a/apps/tagdb/array_buffer.c
+++ b/apps/tagdb/array_buffer.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include "malloc.h" // malloc() and free()
#include "array_buffer.h"
@@ -664,4 +665,4 @@ int array_buffer_write(FILE *fd, struct array_buffer *b) {
return ERR_NONE;
}
-
+#endif
diff --git a/apps/tagdb/array_buffer.h b/apps/tagdb/array_buffer.h
index 6dccefe..d098c7a 100644
--- a/apps/tagdb/array_buffer.h
+++ b/apps/tagdb/array_buffer.h
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#ifndef __ARRAY_BUFFER_H__
#define __ARRAY_BUFFER_H__
@@ -157,3 +158,4 @@ int array_buffer_write(FILE *fd, struct array_buffer *b);
*/
#endif
+#endif
diff --git a/apps/tagdb/artist.c b/apps/tagdb/artist.c
index 82db81d..36ce560 100644
--- a/apps/tagdb/artist.c
+++ b/apps/tagdb/artist.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include "malloc.h" // realloc() and free()
#include <string.h> // strncasecmp()
@@ -368,3 +369,4 @@ int artist_entry_add_album_file(FILE *fd, struct artist_entry *e, struct artist_
return ERR_NO_INPLACE_UPDATE;
}
+#endif
diff --git a/apps/tagdb/artist.h b/apps/tagdb/artist.h
index c741594..102e287 100644
--- a/apps/tagdb/artist.h
+++ b/apps/tagdb/artist.h
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#ifndef __ARTIST_H__
#define __ARTIST_H__
@@ -98,3 +99,4 @@ int artist_entry_add_album_file(FILE *fd, struct artist_entry *e, struct artist_
*/
#endif
+#endif
diff --git a/apps/tagdb/config.h b/apps/tagdb/config.h
index 8646134..5e5e870 100644
--- a/apps/tagdb/config.h
+++ b/apps/tagdb/config.h
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#ifndef __CONFIG_H // Include me only once
#define __CONFIG_H
@@ -37,3 +38,4 @@
#include <assert.h>
#endif
+#endif
diff --git a/apps/tagdb/db.c b/apps/tagdb/db.c
index 1c84b2b..4dfeb47 100644
--- a/apps/tagdb/db.c
+++ b/apps/tagdb/db.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include <string.h> // strlen() strcpy() strcat()
#include "malloc.h"
@@ -601,3 +602,4 @@ int tag_info_destruct(struct tag_info *t) {
return ERR_NONE;
}
+#endif
diff --git a/apps/tagdb/db.h b/apps/tagdb/db.h
index be29581..709bf1f 100644
--- a/apps/tagdb/db.h
+++ b/apps/tagdb/db.h
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#ifndef __DB_H__
#define __DB_H__
@@ -35,3 +36,4 @@ struct tag_info* new_tag_info();
int tag_info_destruct(struct tag_info *t);
#endif
+#endif
diff --git a/apps/tagdb/file.c b/apps/tagdb/file.c
index de641fe..762f008 100644
--- a/apps/tagdb/file.c
+++ b/apps/tagdb/file.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include "malloc.h" // realloc() and free()
#include <string.h> // strncasecmp()
@@ -266,3 +267,4 @@ int file_size_destruct(struct file_size *s) {
free(s);
return ERR_NONE;
}
+#endif
diff --git a/apps/tagdb/file.h b/apps/tagdb/file.h
index d2538a7..103a601 100644
--- a/apps/tagdb/file.h
+++ b/apps/tagdb/file.h
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#ifndef __FILE_H__
#define __FILE_H__
@@ -82,3 +83,4 @@ int file_size_destruct(struct file_size *s);
*/
#endif
+#ifdef HAVE_TAGCACHE
diff --git a/apps/tagdb/header.c b/apps/tagdb/header.c
index 01f9738..524c5b7 100644
--- a/apps/tagdb/header.c
+++ b/apps/tagdb/header.c
@@ -1,4 +1,4 @@
-
+#ifdef HAVE_TAGCACHE
#include <stdio.h>
#include "header.h"
@@ -119,3 +119,4 @@ int header_write(FILE *fd, const struct header *h) {
return ERR_NONE;
}
+#endif
diff --git a/apps/tagdb/header.h b/apps/tagdb/header.h
index 08a563e..28a28d3 100644
--- a/apps/tagdb/header.h
+++ b/apps/tagdb/header.h
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#ifndef __HEADER_H__
#define __HEADER_H__
@@ -37,3 +38,4 @@ struct header {
int header_write(FILE *fd, const struct header *header);
#endif
+#endif
diff --git a/apps/tagdb/main.c b/apps/tagdb/main.c
index 61a0330..ce695e6 100644
--- a/apps/tagdb/main.c
+++ b/apps/tagdb/main.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include "config.h"
#include <stdio.h>
@@ -113,3 +114,4 @@ int main(int argc, char* argv[]) {
return 0;
}
+#endif
diff --git a/apps/tagdb/malloc.c b/apps/tagdb/malloc.c
index 78d24f9..dbc2c5b 100644
--- a/apps/tagdb/malloc.c
+++ b/apps/tagdb/malloc.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include "config.h"
#include "malloc.h"
@@ -129,3 +130,4 @@ void malloc_stats() {
printf(" Maximum amount of allocated memory: %dbytes\n", max_total);
printf(" Current amount of allocated memory: %dbytes\n", total);
}
+#endif
diff --git a/apps/tagdb/malloc.h b/apps/tagdb/malloc.h
index c8c885b..c09649b 100644
--- a/apps/tagdb/malloc.h
+++ b/apps/tagdb/malloc.h
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#ifndef __MALLOC_H__
#define __MALLOC_H__
@@ -14,3 +15,4 @@ void *do_realloc(void *ptr, size_t size);
void malloc_stats();
#endif
+#endif
diff --git a/apps/tagdb/parser.c b/apps/tagdb/parser.c
index 6eec3ba..6e2eeff 100644
--- a/apps/tagdb/parser.c
+++ b/apps/tagdb/parser.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
@@ -215,3 +216,4 @@ int main(int argc, char *argv[]) {
return 0;
}
+#endif
diff --git a/apps/tagdb/song.c b/apps/tagdb/song.c
index 16ae385..f62ecad 100644
--- a/apps/tagdb/song.c
+++ b/apps/tagdb/song.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include "malloc.h" // realloc() and free()
#include <string.h> // strncasecmp()
@@ -448,3 +449,4 @@ int song_size_destruct(struct song_size *s) {
free(s);
return ERR_NONE;
}
+#endif
diff --git a/apps/tagdb/song.h b/apps/tagdb/song.h
index 1be81cc..ac155b4 100644
--- a/apps/tagdb/song.h
+++ b/apps/tagdb/song.h
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#ifndef __SONG_H__
#define __SONG_H__
@@ -91,3 +92,4 @@ int song_size_destruct(struct song_size *s);
*/
#endif
+#endif
diff --git a/apps/tagdb/tag_dummy.c b/apps/tagdb/tag_dummy.c
index f0125f3..4318724 100644
--- a/apps/tagdb/tag_dummy.c
+++ b/apps/tagdb/tag_dummy.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include "config.h"
#include "malloc.h"
@@ -9,3 +10,4 @@ int tag_dummy(char *file, struct tag_info *t) {
strcpy(t->song, file);
return ERR_NONE;
}
+#endif
diff --git a/apps/tagdb/tag_dummy.h b/apps/tagdb/tag_dummy.h
index 856a0a5..e05595a 100644
--- a/apps/tagdb/tag_dummy.h
+++ b/apps/tagdb/tag_dummy.h
@@ -1,3 +1,5 @@
+#ifdef HAVE_TAGCACHE
#include "db.h"
int tag_dummy(char *file, struct tag_info *t);
+#endif
diff --git a/apps/tagdb/unique.c b/apps/tagdb/unique.c
index 471f59e..3fd4359 100644
--- a/apps/tagdb/unique.c
+++ b/apps/tagdb/unique.c
@@ -1,3 +1,4 @@
+#ifdef HAVE_TAGCACHE
#include "unique.h"
#include <string.h>
@@ -14,3 +15,4 @@ char *create_unique_name(char *buffer, const char *prefix, const char *suffix, i
return buffer;
}
+#endif
diff --git a/apps/tagdb/unique.h b/apps/tagdb/unique.h
index 03dc2611..bd5ebd8 100644
--- a/apps/tagdb/unique.h
+++ b/apps/tagdb/unique.h
@@ -1,6 +1,8 @@
+#ifdef
#ifndef __UNIQUE_H__
#define __UNIQUE_H__
char *create_unique_name(char *buffer, const char *prefix, const char *suffix, int digits);
#endif
+#endif