aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_statistics_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-23 22:08:47 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-23 22:08:47 +0000
commitf3575010be1a53abe6a27b5e5c4d2d60f46ba805 (patch)
treeb8685067df250ac92e78414df3063315fc15adc0 /src/include/gnunet_statistics_service.h
parent912d1dc85990d15f2ce7fcfb837dc37cd327833b (diff)
downloadgnunet-f3575010be1a53abe6a27b5e5c4d2d60f46ba805.tar.gz
gnunet-f3575010be1a53abe6a27b5e5c4d2d60f46ba805.zip
-cleaning up stats code, use separate structures per subsystem for faster processing
Diffstat (limited to 'src/include/gnunet_statistics_service.h')
-rw-r--r--src/include/gnunet_statistics_service.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/include/gnunet_statistics_service.h b/src/include/gnunet_statistics_service.h
index 41788d67e..2b55ad175 100644
--- a/src/include/gnunet_statistics_service.h
+++ b/src/include/gnunet_statistics_service.h
@@ -61,11 +61,12 @@ struct GNUNET_STATISTICS_Handle;
61 * @param is_persistent #GNUNET_YES if the value is persistent, #GNUNET_NO if not 61 * @param is_persistent #GNUNET_YES if the value is persistent, #GNUNET_NO if not
62 * @return #GNUNET_OK to continue, #GNUNET_SYSERR to abort iteration 62 * @return #GNUNET_OK to continue, #GNUNET_SYSERR to abort iteration
63 */ 63 */
64typedef int (*GNUNET_STATISTICS_Iterator) (void *cls, 64typedef int
65 const char *subsystem, 65(*GNUNET_STATISTICS_Iterator) (void *cls,
66 const char *name, 66 const char *subsystem,
67 uint64_t value, 67 const char *name,
68 int is_persistent); 68 uint64_t value,
69 int is_persistent);
69 70
70 71
71/** 72/**
@@ -81,8 +82,7 @@ GNUNET_STATISTICS_create (const char *subsystem,
81 82
82 83
83/** 84/**
84 * Destroy a handle (free all state associated with 85 * Destroy a handle (free all state associated with it).
85 * it).
86 * 86 *
87 * @param h statistics handle to destroy 87 * @param h statistics handle to destroy
88 * @param sync_first set to #GNUNET_YES if pending SET requests should 88 * @param sync_first set to #GNUNET_YES if pending SET requests should