API to create, modify and access statistics. More...
#include "gnunet_util_lib.h"
Go to the source code of this file.
Macros | |
#define | GNUNET_STATISTICS_VERSION 0x00000000 |
Version of the statistics API. More... | |
Typedefs | |
typedef int(* | GNUNET_STATISTICS_Iterator) (void *cls, const char *subsystem, const char *name, uint64_t value, int is_persistent) |
Callback function to process statistic values. More... | |
typedef void(* | GNUNET_STATISTICS_Callback) (void *cls, int success) |
Continuation called by GNUNET_STATISTICS_get() functions. More... | |
Functions | |
struct GNUNET_STATISTICS_Handle * | GNUNET_STATISTICS_create (const char *subsystem, const struct GNUNET_CONFIGURATION_Handle *cfg) |
Get handle for the statistics service. More... | |
void | GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, int sync_first) |
Destroy a handle (free all state associated with it). More... | |
int | GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle, const char *subsystem, const char *name, GNUNET_STATISTICS_Iterator proc, void *proc_cls) |
Watch statistics from the peer (be notified whenever they change). More... | |
int | GNUNET_STATISTICS_watch_cancel (struct GNUNET_STATISTICS_Handle *handle, const char *subsystem, const char *name, GNUNET_STATISTICS_Iterator proc, void *proc_cls) |
Stop watching statistics from the peer. More... | |
struct GNUNET_STATISTICS_GetHandle * | GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle, const char *subsystem, const char *name, GNUNET_STATISTICS_Callback cont, GNUNET_STATISTICS_Iterator proc, void *cls) |
Get statistic from the peer. More... | |
void | GNUNET_STATISTICS_get_cancel (struct GNUNET_STATISTICS_GetHandle *gh) |
Cancel a GNUNET_STATISTICS_get request. More... | |
void | GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle, const char *name, uint64_t value, int make_persistent) |
Set statistic value for the peer. More... | |
void | GNUNET_STATISTICS_update (struct GNUNET_STATISTICS_Handle *handle, const char *name, int64_t delta, int make_persistent) |
Set statistic value for the peer. More... | |
API to create, modify and access statistics.
Definition in file gnunet_statistics_service.h.