diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-19 19:06:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-19 19:06:30 +0000 |
commit | 9ac941283d419e21937e63629f3e6610abab233b (patch) | |
tree | b9db97d2b00085e47a66a5e8e8a01c97f5528213 /src/include/gnunet_statistics_service.h | |
parent | 4715a1778070d339252b24f16d3cca9823d31781 (diff) | |
download | gnunet-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.h | 36 |
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 | */ |
64 | typedef int (*GNUNET_STATISTICS_Iterator) (void *cls, const char *subsystem, | 64 | typedef 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 | */ |
88 | void | 91 | void |
89 | GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, int sync_first); | 92 | GNUNET_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 | */ |
102 | int | 106 | int |
103 | GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle, | 107 | GNUNET_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 | */ |
118 | int | 124 | int |
119 | GNUNET_STATISTICS_watch_cancel (struct GNUNET_STATISTICS_Handle *handle, | 125 | GNUNET_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 | */ |
131 | typedef void (*GNUNET_STATISTICS_Callback) (void *cls, int success); | 139 | typedef 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 | */ |
154 | struct GNUNET_STATISTICS_GetHandle * | 163 | struct GNUNET_STATISTICS_GetHandle * |
155 | GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle, | 164 | GNUNET_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 | */ |
181 | void | 191 | void |
182 | GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle, | 192 | GNUNET_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 | */ |
195 | void | 207 | void |
196 | GNUNET_STATISTICS_update (struct GNUNET_STATISTICS_Handle *handle, | 208 | GNUNET_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 | ||