#ifndef TOR_LIB_METRICS_METRICS_STORE_H
#define TOR_LIB_METRICS_METRICS_STORE_H
#include "lib/buf/buffers.h"
#include "lib/container/smartlist.h"
#include "lib/metrics/metrics_common.h"
#include "lib/metrics/metrics_store_entry.h"
typedef struct metrics_store_t metrics_store_t;
void metrics_store_free_(metrics_store_t *store);
#define metrics_store_free(store) \
FREE_AND_NULL(metrics_store_t, metrics_store_free_, (store))
metrics_store_t *metrics_store_new(void);
metrics_store_entry_t *metrics_store_add(metrics_store_t *store,
metrics_type_t type,
const char *name, const char *help);
smartlist_t *metrics_store_get_all(const metrics_store_t *store,
const char *name);
void metrics_store_get_output(const metrics_format_t fmt,
const metrics_store_t *store, buf_t *data);
#ifdef METRICS_METRICS_STORE_PRIVATE
#endif
#endif