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

myMPD database API More...

Include dependency graph for database.c:

Functions

sds mympd_api_database_update (struct t_partition_state *partition_state, sds buffer, enum mympd_cmd_ids cmd_id, unsigned request_id, sds path)

Detailed Description

myMPD database API

Function Documentation

◆ mympd_api_database_update()

sds mympd_api_database_update ( struct t_partition_state * partition_state,
sds buffer,
enum mympd_cmd_ids cmd_id,
unsigned request_id,
sds path )

Starts mpd database update or rescan. It checks if a database update is already running.

Parameters
partition_statepointer to partition state
bufferpointer to sds string to append the jsonrpc result
cmd_idjsonrpc method
request_idmongoose request id
pathpath to update
Returns
pointer to buffer