summaryrefslogtreecommitdiff
path: root/src/include/gnunet_statistics_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_statistics_service.h')
-rw-r--r--src/include/gnunet_statistics_service.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/include/gnunet_statistics_service.h b/src/include/gnunet_statistics_service.h
index 94fa49358..3dd6e9ce1 100644
--- a/src/include/gnunet_statistics_service.h
+++ b/src/include/gnunet_statistics_service.h
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -85,8 +85,8 @@ typedef int
85 * @return handle to use 85 * @return handle to use
86 */ 86 */
87struct GNUNET_STATISTICS_Handle * 87struct GNUNET_STATISTICS_Handle *
88GNUNET_STATISTICS_create (const char *subsystem, 88GNUNET_STATISTICS_create(const char *subsystem,
89 const struct GNUNET_CONFIGURATION_Handle *cfg); 89 const struct GNUNET_CONFIGURATION_Handle *cfg);
90 90
91 91
92/** 92/**
@@ -97,8 +97,8 @@ GNUNET_STATISTICS_create (const char *subsystem,
97 * be completed 97 * be completed
98 */ 98 */
99void 99void
100GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, 100GNUNET_STATISTICS_destroy(struct GNUNET_STATISTICS_Handle *h,
101 int sync_first); 101 int sync_first);
102 102
103 103
104/** 104/**
@@ -112,11 +112,11 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h,
112 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error 112 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
113 */ 113 */
114int 114int
115GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle, 115GNUNET_STATISTICS_watch(struct GNUNET_STATISTICS_Handle *handle,
116 const char *subsystem, 116 const char *subsystem,
117 const char *name, 117 const char *name,
118 GNUNET_STATISTICS_Iterator proc, 118 GNUNET_STATISTICS_Iterator proc,
119 void *proc_cls); 119 void *proc_cls);
120 120
121 121
122/** 122/**
@@ -130,11 +130,11 @@ GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle,
130 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error (no such watch) 130 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error (no such watch)
131 */ 131 */
132int 132int
133GNUNET_STATISTICS_watch_cancel (struct GNUNET_STATISTICS_Handle *handle, 133GNUNET_STATISTICS_watch_cancel(struct GNUNET_STATISTICS_Handle *handle,
134 const char *subsystem, 134 const char *subsystem,
135 const char *name, 135 const char *name,
136 GNUNET_STATISTICS_Iterator proc, 136 GNUNET_STATISTICS_Iterator proc,
137 void *proc_cls); 137 void *proc_cls);
138 138
139 139
140/** 140/**
@@ -168,12 +168,12 @@ struct GNUNET_STATISTICS_GetHandle;
168 * @return NULL on error 168 * @return NULL on error
169 */ 169 */
170struct GNUNET_STATISTICS_GetHandle * 170struct GNUNET_STATISTICS_GetHandle *
171GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle, 171GNUNET_STATISTICS_get(struct GNUNET_STATISTICS_Handle *handle,
172 const char *subsystem, 172 const char *subsystem,
173 const char *name, 173 const char *name,
174 GNUNET_STATISTICS_Callback cont, 174 GNUNET_STATISTICS_Callback cont,
175 GNUNET_STATISTICS_Iterator proc, 175 GNUNET_STATISTICS_Iterator proc,
176 void *cls); 176 void *cls);
177 177
178 178
179/** 179/**
@@ -183,7 +183,7 @@ GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle,
183 * @param gh handle of the request to cancel 183 * @param gh handle of the request to cancel
184 */ 184 */
185void 185void
186GNUNET_STATISTICS_get_cancel (struct GNUNET_STATISTICS_GetHandle *gh); 186GNUNET_STATISTICS_get_cancel(struct GNUNET_STATISTICS_GetHandle *gh);
187 187
188 188
189/** 189/**
@@ -196,10 +196,10 @@ GNUNET_STATISTICS_get_cancel (struct GNUNET_STATISTICS_GetHandle *gh);
196 * @param make_persistent should the value be kept across restarts? 196 * @param make_persistent should the value be kept across restarts?
197 */ 197 */
198void 198void
199GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle, 199GNUNET_STATISTICS_set(struct GNUNET_STATISTICS_Handle *handle,
200 const char *name, 200 const char *name,
201 uint64_t value, 201 uint64_t value,
202 int make_persistent); 202 int make_persistent);
203 203
204 204
205/** 205/**
@@ -212,10 +212,10 @@ GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle,
212 * @param make_persistent should the value be kept across restarts? 212 * @param make_persistent should the value be kept across restarts?
213 */ 213 */
214void 214void
215GNUNET_STATISTICS_update (struct GNUNET_STATISTICS_Handle *handle, 215GNUNET_STATISTICS_update(struct GNUNET_STATISTICS_Handle *handle,
216 const char *name, 216 const char *name,
217 int64_t delta, 217 int64_t delta,
218 int make_persistent); 218 int make_persistent);
219 219
220 220
221 221