song.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_SONG_H
#define MPD_SONG_H
#include "tag.h"
#include "compiler.h"
#include <stdbool.h>
#include <time.h>
struct mpd_pair;
struct mpd_connection;
struct mpd_song;
#ifdef __cplusplus
extern "C" {
#endif
void mpd_song_free(struct mpd_song *song);
mpd_malloc
struct mpd_song *
mpd_song_dup(const struct mpd_song *song);
mpd_pure
const char *
mpd_song_get_uri(const struct mpd_song *song);
mpd_pure
const char *
mpd_song_get_tag(const struct mpd_song *song,
enum mpd_tag_type type, unsigned idx);
mpd_pure
unsigned
mpd_song_get_duration(const struct mpd_song *song);
mpd_pure
unsigned
mpd_song_get_duration_ms(const struct mpd_song *song);
mpd_pure
unsigned
mpd_song_get_start(const struct mpd_song *song);
mpd_pure
unsigned
mpd_song_get_end(const struct mpd_song *song);
mpd_pure
time_t
mpd_song_get_last_modified(const struct mpd_song *song);
mpd_pure
time_t
mpd_song_get_added(const struct mpd_song *song);
void
mpd_song_set_pos(struct mpd_song *song, unsigned pos);
mpd_pure
unsigned
mpd_song_get_pos(const struct mpd_song *song);
mpd_pure
unsigned
mpd_song_get_id(const struct mpd_song *song);
mpd_pure
unsigned
mpd_song_get_prio(const struct mpd_song *song);
mpd_pure
const struct mpd_audio_format *
mpd_song_get_audio_format(const struct mpd_song *song);
mpd_malloc
struct mpd_song *
mpd_song_begin(const struct mpd_pair *pair);
bool
mpd_song_feed(struct mpd_song *song, const struct mpd_pair *pair);
mpd_malloc
struct mpd_song *
mpd_recv_song(struct mpd_connection *connection);
#ifdef __cplusplus
}
#endif
#endif
mpd_song_get_start
unsigned mpd_song_get_start(const struct mpd_song *song)
mpd_song_free
void mpd_song_free(struct mpd_song *song)
mpd_recv_song
struct mpd_song * mpd_recv_song(struct mpd_connection *connection)
mpd_song_get_duration_ms
unsigned mpd_song_get_duration_ms(const struct mpd_song *song)
mpd_song_get_last_modified
time_t mpd_song_get_last_modified(const struct mpd_song *song)
mpd_song_get_end
unsigned mpd_song_get_end(const struct mpd_song *song)
mpd_song_get_duration
unsigned mpd_song_get_duration(const struct mpd_song *song)
mpd_song_get_added
time_t mpd_song_get_added(const struct mpd_song *song)
mpd_song_set_pos
void mpd_song_set_pos(struct mpd_song *song, unsigned pos)
mpd_song_get_uri
const char * mpd_song_get_uri(const struct mpd_song *song)
mpd_song_get_id
unsigned mpd_song_get_id(const struct mpd_song *song)
mpd_song_feed
bool mpd_song_feed(struct mpd_song *song, const struct mpd_pair *pair)
mpd_song_get_prio
unsigned mpd_song_get_prio(const struct mpd_song *song)
mpd_song_dup
struct mpd_song * mpd_song_dup(const struct mpd_song *song)
mpd_song_begin
struct mpd_song * mpd_song_begin(const struct mpd_pair *pair)
mpd_song_get_pos
unsigned mpd_song_get_pos(const struct mpd_song *song)
mpd_song_get_tag
const char * mpd_song_get_tag(const struct mpd_song *song, enum mpd_tag_type type, unsigned idx)
mpd_song_get_audio_format
const struct mpd_audio_format * mpd_song_get_audio_format(const struct mpd_song *song)
mpd_audio_format
Definition audio_format.h:37
mpd_connection
mpd_pair
Definition pair.h:16
mpd_song
tag.h
mpd_tag_type
mpd_tag_type
Definition tag.h:26