myMPD
Internal API documentation
Loading...
Searching...
No Matches
status.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2025 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
11#ifndef MYMPD_API_STATUS_H
12#define MYMPD_API_STATUS_H
13
15#include "src/lib/mympd_state.h"
16
17unsigned mympd_api_get_elapsed_seconds(struct mpd_status *status);
18sds mympd_api_status_print(struct t_partition_state *partition_state, struct t_cache *album_cache, sds buffer, struct mpd_status *status);
19sds mympd_api_status_updatedb_state(struct t_partition_state *partition_state, sds buffer);
20unsigned mympd_api_status_updatedb_id(struct t_partition_state *partition_state);
21sds mympd_api_status_volume_get(struct t_partition_state *partition_state, sds buffer, unsigned request_id, enum jsonrpc_response_types response_type);
22sds mympd_api_status_get(struct t_partition_state *partition_state, struct t_cache *album_cache,
23 sds buffer, unsigned request_id, enum jsonrpc_response_types response_type);
24bool mympd_api_status_clear_error(struct t_partition_state *partition_state, sds *buffer, enum mympd_cmd_ids cmd_id, unsigned request_id);
25sds mympd_api_status_current_song(struct t_mympd_state *mympd_state, struct t_partition_state *partition_state,
26 sds buffer, unsigned request_id);
27
28#endif
Jsonrpc implementation.
jsonrpc_response_types
Definition json_rpc.h:22
mympd_cmd_ids
Definition api.h:265
Central myMPD state for the mympd_api thread.
sds mympd_api_status_current_song(struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, sds buffer, unsigned request_id)
Definition status.c:325
sds mympd_api_status_updatedb_state(struct t_partition_state *partition_state, sds buffer)
Definition status.c:101
unsigned mympd_api_status_updatedb_id(struct t_partition_state *partition_state)
Definition status.c:122
sds mympd_api_status_get(struct t_partition_state *partition_state, struct t_cache *album_cache, sds buffer, unsigned request_id, enum jsonrpc_response_types response_type)
Definition status.c:146
bool mympd_api_status_clear_error(struct t_partition_state *partition_state, sds *buffer, enum mympd_cmd_ids cmd_id, unsigned request_id)
Definition status.c:281
sds mympd_api_status_print(struct t_partition_state *partition_state, struct t_cache *album_cache, sds buffer, struct mpd_status *status)
Definition status.c:68
unsigned mympd_api_get_elapsed_seconds(struct mpd_status *status)
Definition status.c:56
sds mympd_api_status_volume_get(struct t_partition_state *partition_state, sds buffer, unsigned request_id, enum jsonrpc_response_types response_type)
Definition status.c:303
Definition cache_rax.h:22
Definition mympd_state.h:215
Definition mympd_state.h:114