aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/song.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/song.h b/src/song.h
index 1834b36ed..366ffc1a1 100644
--- a/src/song.h
+++ b/src/song.h
@@ -21,6 +21,7 @@
#define MPD_SONG_H
#include "util/list.h"
+#include "gcc.h"
#include <stddef.h>
#include <stdbool.h>
@@ -100,6 +101,13 @@ song_is_file(const struct song *song)
return song_in_database(song) || song->uri[0] == '/';
}
+/**
+ * Returns true if both objects refer to the same physical song.
+ */
+gcc_pure
+bool
+song_equals(const struct song *a, const struct song *b);
+
bool
song_file_update(struct song *song);