2008-09-23 20:48:39 +02:00
|
|
|
#ifndef SONGVEC_H
|
|
|
|
#define SONGVEC_H
|
|
|
|
|
|
|
|
#include "song.h"
|
|
|
|
#include "os_compat.h"
|
|
|
|
|
|
|
|
struct songvec {
|
|
|
|
Song **base;
|
|
|
|
size_t nr;
|
|
|
|
};
|
|
|
|
|
|
|
|
void songvec_sort(struct songvec *sv);
|
|
|
|
|
|
|
|
Song *songvec_find(struct songvec *sv, const char *url);
|
|
|
|
|
2008-09-29 13:17:30 +02:00
|
|
|
int songvec_delete(struct songvec *sv, const Song *del);
|
2008-09-23 20:48:39 +02:00
|
|
|
|
|
|
|
void songvec_add(struct songvec *sv, Song *add);
|
|
|
|
|
2008-09-29 12:17:13 +02:00
|
|
|
void songvec_destroy(struct songvec *sv);
|
2008-09-23 20:48:39 +02:00
|
|
|
|
|
|
|
#endif /* SONGVEC_H */
|