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

myMPD folderart API More...

#include "compile_time.h"
#include "src/mympd_api/folderart.h"
#include "src/lib/api.h"
#include "src/lib/json/json_rpc.h"
#include "src/lib/log.h"
#include "src/mympd_api/trigger.h"
#include <string.h>
Include dependency graph for folderart.c:

Functions

sds mympd_api_folderart (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, sds buffer, unsigned request_id, unsigned long conn_id, sds path)
 

Detailed Description

myMPD folderart API

Function Documentation

◆ mympd_api_folderart()

sds mympd_api_folderart ( struct t_mympd_state mympd_state,
struct t_partition_state partition_state,
sds  buffer,
unsigned  request_id,
unsigned long  conn_id,
sds  path 
)

Fetches the folderart. MPD has no function for this, we rely only on scripts. Local playlistart was already read by the webserver thread.

Parameters
mympd_statepointer to mympd state
partition_statepointer to partition specific states
bufferalready allocated sds string for the jsonrpc response
request_idrequest id
conn_idmongoose connection id
pathFolderpath
Returns
jsonrpc response