aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/directory.h')
-rw-r--r--src/directory.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/directory.h b/src/directory.h
index f33d854c6..c9601b91a 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -19,12 +19,13 @@
#ifndef DIRECTORY_H
#define DIRECTORY_H
-#include "song.h"
#include "songvec.h"
#include "list.h"
#include <stdbool.h>
+struct client;
+
struct dirvec {
struct directory **base;
size_t nr;
@@ -75,12 +76,13 @@ int writeDirectoryDB(void);
int readDirectoryDB(void);
-Song *getSongFromDB(const char *file);
+struct song *
+getSongFromDB(const char *file);
time_t getDbModTime(void);
int traverseAllIn(const char *name,
- int (*forEachSong) (Song *, void *),
+ int (*forEachSong) (struct song *, void *),
int (*forEachDir) (struct directory *, void *), void *data);
#define getDirectoryPath(dir) ((dir && dir->path) ? dir->path : "")