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

myMPD database API More...

#include "dist/sds/sds.h"
#include "src/lib/api.h"
#include "src/lib/mympd_state.h"
#include <stdbool.h>
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

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