Directory: make the header C++ only

This commit is contained in:
Max Kellermann
2013-01-02 22:52:08 +01:00
parent d65ad1bf15
commit 0c245bc271
24 changed files with 33 additions and 53 deletions

View File

@@ -21,7 +21,7 @@
#include "DatabaseRegistry.hxx"
#include "DatabasePlugin.hxx"
#include "DatabaseSelection.hxx"
#include "directory.h"
#include "Directory.hxx"
#include "song.h"
#include "PlaylistVector.hxx"

View File

@@ -1,19 +1,16 @@
#include "config.h"
extern "C" {
#include "queue.h"
}
#include "song.h"
#include "directory.h"
#include "Directory.hxx"
struct directory detached_root;
struct song *
song_dup_detached(const struct song *src)
{
union {
const struct song *in;
struct song *out;
} u = { .in = src };
return u.out;
return const_cast<song *>(src);
}
void