stats.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_STATS_H
#define MPD_STATS_H
#include "compiler.h"
#include <stdbool.h>
struct mpd_connection;
struct mpd_pair;
struct mpd_stats;
#ifdef __cplusplus
extern "C" {
#endif
bool
mpd_send_stats(struct mpd_connection *connection);
mpd_malloc
struct mpd_stats *
mpd_stats_begin(void);
void
mpd_stats_feed(struct mpd_stats *stats, const struct mpd_pair *pair);
mpd_malloc
struct mpd_stats *
mpd_recv_stats(struct mpd_connection *connection);
mpd_malloc
struct mpd_stats *
mpd_run_stats(struct mpd_connection *connection);
void mpd_stats_free(struct mpd_stats *stats);
mpd_pure
unsigned
mpd_stats_get_number_of_artists(const struct mpd_stats *stats);
mpd_pure
unsigned
mpd_stats_get_number_of_albums(const struct mpd_stats *stats);
mpd_pure
unsigned
mpd_stats_get_number_of_songs(const struct mpd_stats *stats);
mpd_pure
unsigned long mpd_stats_get_uptime(const struct mpd_stats *stats);
mpd_pure
unsigned long mpd_stats_get_db_update_time(const struct mpd_stats *stats);
mpd_pure
unsigned long mpd_stats_get_play_time(const struct mpd_stats *stats);
mpd_pure
unsigned long mpd_stats_get_db_play_time(const struct mpd_stats *stats);
#ifdef __cplusplus
}
#endif
#endif
mpd_stats_get_number_of_artists
unsigned mpd_stats_get_number_of_artists(const struct mpd_stats *stats)
mpd_stats_begin
struct mpd_stats * mpd_stats_begin(void)
mpd_stats_get_db_play_time
unsigned long mpd_stats_get_db_play_time(const struct mpd_stats *stats)
mpd_stats_get_uptime
unsigned long mpd_stats_get_uptime(const struct mpd_stats *stats)
mpd_stats_get_play_time
unsigned long mpd_stats_get_play_time(const struct mpd_stats *stats)
mpd_stats_get_db_update_time
unsigned long mpd_stats_get_db_update_time(const struct mpd_stats *stats)
mpd_stats_feed
void mpd_stats_feed(struct mpd_stats *stats, const struct mpd_pair *pair)
mpd_recv_stats
struct mpd_stats * mpd_recv_stats(struct mpd_connection *connection)
mpd_send_stats
bool mpd_send_stats(struct mpd_connection *connection)
mpd_run_stats
struct mpd_stats * mpd_run_stats(struct mpd_connection *connection)
mpd_stats_free
void mpd_stats_free(struct mpd_stats *stats)
mpd_stats_get_number_of_songs
unsigned mpd_stats_get_number_of_songs(const struct mpd_stats *stats)
mpd_stats_get_number_of_albums
unsigned mpd_stats_get_number_of_albums(const struct mpd_stats *stats)
mpd_connection
mpd_pair
Definition pair.h:16
mpd_stats