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. | |
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. | |
| typedef void(* | GNUNET_STATISTICS_Callback) (void *cls, int success) |
| Continuation called by GNUNET_STATISTICS_get() functions. | |
Functions | |
| struct GNUNET_STATISTICS_Handle * | GNUNET_STATISTICS_create (const char *subsystem, const struct GNUNET_CONFIGURATION_Handle *cfg) |
| Get handle for the statistics service. | |
| void | GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, int sync_first) |
| Destroy a handle (free all state associated with it). | |
| 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). | |
| 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. | |
| 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. | |
| void | GNUNET_STATISTICS_get_cancel (struct GNUNET_STATISTICS_GetHandle *gh) |
| Cancel a GNUNET_STATISTICS_get request. | |
| void | GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle, const char *name, uint64_t value, int make_persistent) |
| Set statistic value for the peer. | |
| void | GNUNET_STATISTICS_update (struct GNUNET_STATISTICS_Handle *handle, const char *name, int64_t delta, int make_persistent) |
| Set statistic value for the peer. | |
API to create, modify and access statistics.
Definition in file gnunet_statistics_service.h.