song: converted typedef Song to struct song
Again, a data type which can be forward-declared.
This commit is contained in:
@@ -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 : "")
|
||||
|
Reference in New Issue
Block a user