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

myMPD tagart API More...

#include "compile_time.h"
#include "src/mympd_api/tagart.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 tagart.c:

Functions

sds mympd_api_tagart (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, sds buffer, unsigned request_id, unsigned long conn_id, sds tag, sds value)
 

Detailed Description

myMPD tagart API

Function Documentation

◆ mympd_api_tagart()

sds mympd_api_tagart ( struct t_mympd_state mympd_state,
struct t_partition_state partition_state,
sds  buffer,
unsigned  request_id,
unsigned long  conn_id,
sds  tag,
sds  value 
)

Fetches the tagart. MPD has no function for this, we rely only on scripts. Local tagart 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
tagmpd tag
valuempd tag value
Returns
jsonrpc response