#include <stddef.h>
#include <stdbool.h>
#include <sys/time.h>
Go to the source code of this file.
Data Structures | |
struct | song |
Defines | |
#define | SONG_BEGIN "songList begin" |
#define | SONG_END "songList end" |
#define | SONG_FILE "file: " |
#define | SONG_TIME "Time: " |
Functions | |
struct song * | song_remote_new (const char *url) |
allocate a new song with a remote URL | |
struct song * | song_file_new (const char *path, struct directory *parent) |
allocate a new song with a local file name | |
struct song * | song_file_load (const char *path, struct directory *parent) |
allocate a new song structure with a local file name and attempt to load its metadata. | |
void | song_free (struct song *song) |
bool | song_file_update (struct song *song) |
bool | song_file_update_inarchive (struct song *song) |
char * | song_get_uri (const struct song *song) |
Returns the URI of the song in UTF-8 encoding, including its location within the music directory. | |
static bool | song_in_database (const struct song *song) |
static bool | song_is_file (const struct song *song) |
allocate a new song with a local file name
bool song_file_update | ( | struct song * | song | ) |
bool song_file_update_inarchive | ( | struct song * | song | ) |
void song_free | ( | struct song * | song | ) |
char* song_get_uri | ( | const struct song * | song | ) |
static bool song_in_database | ( | const struct song * | song | ) | [inline, static] |
static bool song_is_file | ( | const struct song * | song | ) | [inline, static] |