aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_statistics_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-19 19:06:30 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-19 19:06:30 +0000
commit9ac941283d419e21937e63629f3e6610abab233b (patch)
treeb9db97d2b00085e47a66a5e8e8a01c97f5528213 /src/include/gnunet_statistics_service.h
parent4715a1778070d339252b24f16d3cca9823d31781 (diff)
downloadgnunet-9ac941283d419e21937e63629f3e6610abab233b.tar.gz
gnunet-9ac941283d419e21937e63629f3e6610abab233b.zip
-doxygen, fixing #3223
Diffstat (limited to 'src/include/gnunet_statistics_service.h')
-rw-r--r--src/include/gnunet_statistics_service.h36
1 files changed, 25 insertions, 11 deletions
diff --git a/src/include/gnunet_statistics_service.h b/src/include/gnunet_statistics_service.h
index 25562580a..41788d67e 100644
--- a/src/include/gnunet_statistics_service.h
+++ b/src/include/gnunet_statistics_service.h
@@ -61,10 +61,13 @@ 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, const char *subsystem, 64typedef int (*GNUNET_STATISTICS_Iterator) (void *cls,
65 const char *name, uint64_t value, 65 const char *subsystem,
66 const char *name,
67 uint64_t value,
66 int is_persistent); 68 int is_persistent);
67 69
70
68/** 71/**
69 * Get handle for the statistics service. 72 * Get handle for the statistics service.
70 * 73 *
@@ -86,7 +89,8 @@ GNUNET_STATISTICS_create (const char *subsystem,
86 * be completed 89 * be completed
87 */ 90 */
88void 91void
89GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, int sync_first); 92GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h,
93 int sync_first);
90 94
91 95
92/** 96/**
@@ -101,8 +105,10 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, int sync_first);
101 */ 105 */
102int 106int
103GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle, 107GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle,
104 const char *subsystem, const char *name, 108 const char *subsystem,
105 GNUNET_STATISTICS_Iterator proc, void *proc_cls); 109 const char *name,
110 GNUNET_STATISTICS_Iterator proc,
111 void *proc_cls);
106 112
107 113
108/** 114/**
@@ -117,8 +123,10 @@ GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle,
117 */ 123 */
118int 124int
119GNUNET_STATISTICS_watch_cancel (struct GNUNET_STATISTICS_Handle *handle, 125GNUNET_STATISTICS_watch_cancel (struct GNUNET_STATISTICS_Handle *handle,
120 const char *subsystem, const char *name, 126 const char *subsystem,
121 GNUNET_STATISTICS_Iterator proc, void *proc_cls); 127 const char *name,
128 GNUNET_STATISTICS_Iterator proc,
129 void *proc_cls);
122 130
123 131
124/** 132/**
@@ -128,7 +136,8 @@ GNUNET_STATISTICS_watch_cancel (struct GNUNET_STATISTICS_Handle *handle,
128 * @param success #GNUNET_OK if statistics were 136 * @param success #GNUNET_OK if statistics were
129 * successfully obtained, #GNUNET_SYSERR if not. 137 * successfully obtained, #GNUNET_SYSERR if not.
130 */ 138 */
131typedef void (*GNUNET_STATISTICS_Callback) (void *cls, int success); 139typedef void (*GNUNET_STATISTICS_Callback) (void *cls,
140 int success);
132 141
133 142
134/** 143/**
@@ -153,7 +162,8 @@ struct GNUNET_STATISTICS_GetHandle;
153 */ 162 */
154struct GNUNET_STATISTICS_GetHandle * 163struct GNUNET_STATISTICS_GetHandle *
155GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle, 164GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle,
156 const char *subsystem, const char *name, 165 const char *subsystem,
166 const char *name,
157 struct GNUNET_TIME_Relative timeout, 167 struct GNUNET_TIME_Relative timeout,
158 GNUNET_STATISTICS_Callback cont, 168 GNUNET_STATISTICS_Callback cont,
159 GNUNET_STATISTICS_Iterator proc, void *cls); 169 GNUNET_STATISTICS_Iterator proc, void *cls);
@@ -180,7 +190,9 @@ GNUNET_STATISTICS_get_cancel (struct GNUNET_STATISTICS_GetHandle *gh);
180 */ 190 */
181void 191void
182GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle, 192GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle,
183 const char *name, uint64_t value, int make_persistent); 193 const char *name,
194 uint64_t value,
195 int make_persistent);
184 196
185 197
186/** 198/**
@@ -194,7 +206,9 @@ GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle,
194 */ 206 */
195void 207void
196GNUNET_STATISTICS_update (struct GNUNET_STATISTICS_Handle *handle, 208GNUNET_STATISTICS_update (struct GNUNET_STATISTICS_Handle *handle,
197 const char *name, int64_t delta, int make_persistent); 209 const char *name,
210 int64_t delta,
211 int make_persistent);
198 212
199 213
200 214