|
myMPD
Internal API documentation
|
myMPD database API More...
#include "dist/sds/sds.h"#include "src/lib/api.h"#include "src/lib/mympd_state.h"#include <stdbool.h>

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) |
myMPD database API
| 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.
| partition_state | pointer to partition state |
| buffer | pointer to sds string to append the jsonrpc result |
| cmd_id | jsonrpc method |
| request_id | mongoose request id |
| path | path to update |