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

myMPD channel API More...

#include "src/mympd_api/channel.h"
#include "src/lib/api.h"
#include "src/lib/json/json_print.h"
#include "src/lib/json/json_rpc.h"
#include "src/lib/sds/sds_json.h"
#include "src/mympd_client/errorhandler.h"
#include <string.h>
Include dependency graph for channel.c:

Functions

sds mympd_api_channel_list (struct t_partition_state *partition_state, sds buffer, unsigned request_id)
sds mympd_api_channel_messages_read (struct t_partition_state *partition_state, sds buffer, unsigned request_id)

Detailed Description

myMPD channel API

Function Documentation

◆ mympd_api_channel_list()

sds mympd_api_channel_list ( struct t_partition_state * partition_state,
sds buffer,
unsigned request_id )

Returns a list of all MPD channels

Parameters
partition_statepointer to partition_state
buffersds string to append response
request_idjsonrpc id
Returns
pointer to buffer

◆ mympd_api_channel_messages_read()

sds mympd_api_channel_messages_read ( struct t_partition_state * partition_state,
sds buffer,
unsigned request_id )

Returns a list of all messages in all subscribed channels

Parameters
partition_statepointer to partition_state
buffersds string to append response
request_idjsonrpc id
Returns
pointer to buffer