diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-21 18:29:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-21 18:29:03 +0000 |
commit | 3d7b29ec1c5d1c2de96cf4c9badaa112e86ef899 (patch) | |
tree | b586e13615fe58377cef5c0a238a677e5fd8f609 /src/include/gnunet_statistics_service.h | |
parent | 1732154b8c021e7ee0e34c28cf3b1a843454727a (diff) | |
download | gnunet-3d7b29ec1c5d1c2de96cf4c9badaa112e86ef899.tar.gz gnunet-3d7b29ec1c5d1c2de96cf4c9badaa112e86ef899.zip |
update statistics API to use new MQ API style, also get rid of timeout argument
Diffstat (limited to 'src/include/gnunet_statistics_service.h')
-rw-r--r-- | src/include/gnunet_statistics_service.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/include/gnunet_statistics_service.h b/src/include/gnunet_statistics_service.h index 715f06130..2765a07a9 100644 --- a/src/include/gnunet_statistics_service.h +++ b/src/include/gnunet_statistics_service.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet | 2 | This file is part of GNUnet |
3 | Copyright (C) 2009-2013 GNUnet e.V. | 3 | Copyright (C) 2009-2013, 2016 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -138,14 +138,15 @@ GNUNET_STATISTICS_watch_cancel (struct GNUNET_STATISTICS_Handle *handle, | |||
138 | 138 | ||
139 | 139 | ||
140 | /** | 140 | /** |
141 | * Continuation called by #GNUNET_STATISTICS_get functions. | 141 | * Continuation called by #GNUNET_STATISTICS_get() functions. |
142 | * | 142 | * |
143 | * @param cls closure | 143 | * @param cls closure |
144 | * @param success #GNUNET_OK if statistics were | 144 | * @param success #GNUNET_OK if statistics were |
145 | * successfully obtained, #GNUNET_SYSERR if not. | 145 | * successfully obtained, #GNUNET_SYSERR if not. |
146 | */ | 146 | */ |
147 | typedef void (*GNUNET_STATISTICS_Callback) (void *cls, | 147 | typedef void |
148 | int success); | 148 | (*GNUNET_STATISTICS_Callback) (void *cls, |
149 | int success); | ||
149 | 150 | ||
150 | 151 | ||
151 | /** | 152 | /** |
@@ -160,8 +161,6 @@ struct GNUNET_STATISTICS_GetHandle; | |||
160 | * @param handle identification of the statistics service | 161 | * @param handle identification of the statistics service |
161 | * @param subsystem limit to the specified subsystem, NULL for all subsystems | 162 | * @param subsystem limit to the specified subsystem, NULL for all subsystems |
162 | * @param name name of the statistic value, NULL for all values | 163 | * @param name name of the statistic value, NULL for all values |
163 | * @param timeout after how long should we give up (and call | ||
164 | * notify with buf NULL and size 0)? | ||
165 | * @param cont continuation to call when done (can be NULL) | 164 | * @param cont continuation to call when done (can be NULL) |
166 | * This callback CANNOT destroy the statistics handle in the same call. | 165 | * This callback CANNOT destroy the statistics handle in the same call. |
167 | * @param proc function to call on each value | 166 | * @param proc function to call on each value |
@@ -172,9 +171,9 @@ struct GNUNET_STATISTICS_GetHandle * | |||
172 | GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle, | 171 | GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle, |
173 | const char *subsystem, | 172 | const char *subsystem, |
174 | const char *name, | 173 | const char *name, |
175 | struct GNUNET_TIME_Relative timeout, | ||
176 | GNUNET_STATISTICS_Callback cont, | 174 | GNUNET_STATISTICS_Callback cont, |
177 | GNUNET_STATISTICS_Iterator proc, void *cls); | 175 | GNUNET_STATISTICS_Iterator proc, |
176 | void *cls); | ||
178 | 177 | ||
179 | 178 | ||
180 | /** | 179 | /** |