aboutsummaryrefslogtreecommitdiffstats
path: root/src/songvec.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 10:49:11 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 10:49:11 +0200
commitd562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f (patch)
tree1e82f7b4854c5d15c4ab59c48120da02e4b41be9 /src/songvec.h
parent25f67da58c671885c86ecfd991f28ec82b6ce1e2 (diff)
downloadmpd-d562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f.tar.gz
mpd-d562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f.tar.xz
mpd-d562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f.zip
song: converted typedef Song to struct song
Again, a data type which can be forward-declared.
Diffstat (limited to 'src/songvec.h')
-rw-r--r--src/songvec.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/songvec.h b/src/songvec.h
index 0373ed3e7..14e08d773 100644
--- a/src/songvec.h
+++ b/src/songvec.h
@@ -1,27 +1,28 @@
#ifndef SONGVEC_H
#define SONGVEC_H
-#include "song.h"
#include "os_compat.h"
struct songvec {
- Song **base;
+ struct song **base;
size_t nr;
};
void songvec_sort(struct songvec *sv);
-Song *
+struct song *
songvec_find(const struct songvec *sv, const char *url);
-int songvec_delete(struct songvec *sv, const Song *del);
+int
+songvec_delete(struct songvec *sv, const struct song *del);
-void songvec_add(struct songvec *sv, Song *add);
+void
+songvec_add(struct songvec *sv, struct song *add);
void songvec_destroy(struct songvec *sv);
int
songvec_for_each(const struct songvec *sv,
- int (*fn)(Song *, void *), void *arg);
+ int (*fn)(struct song *, void *), void *arg);
#endif /* SONGVEC_H */