myMPD
Internal API documentation
Loading...
Searching...
No Matches
database.h File Reference

MPD database helper functions. More...

Include dependency graph for database.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

time_t mympd_client_get_db_mtime (struct t_partition_state *partition_state)
bool mympd_client_song_exists (struct t_partition_state *partition_state, const char *uri)

Detailed Description

MPD database helper functions.

Function Documentation

◆ mympd_client_get_db_mtime()

time_t mympd_client_get_db_mtime ( struct t_partition_state * partition_state)

Returns the mpd database last modification time

Parameters
partition_statepointer to partition specific states
Returns
last modification time

◆ mympd_client_song_exists()

bool mympd_client_song_exists ( struct t_partition_state * partition_state,
const char * uri )

Checks for a song in the database

Parameters
partition_statePointer to partition state
uriSong uri to check
Returns
true on success or uri is a stream, else false