diff options
Diffstat (limited to 'src/include/gnunet_statistics_service.h')
-rw-r--r-- | src/include/gnunet_statistics_service.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/include/gnunet_statistics_service.h b/src/include/gnunet_statistics_service.h index 5c166d43d..71c834f2a 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 | (C) 2009 Christian Grothoff (and other contributing authors) | 3 | (C) 2009, 2010 Christian Grothoff (and other contributing authors) |
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 |
@@ -94,6 +94,26 @@ void GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, | |||
94 | 94 | ||
95 | 95 | ||
96 | /** | 96 | /** |
97 | * Watch statistics from the peer (be notified whenever they change). | ||
98 | * Note that the only way to cancel a "watch" request is to destroy | ||
99 | * the statistics handle given as the first argument to this call. | ||
100 | * | ||
101 | * @param handle identification of the statistics service | ||
102 | * @param subsystem limit to the specified subsystem, never NULL | ||
103 | * @param name name of the statistic value, never NULL | ||
104 | * @param proc function to call on each value | ||
105 | * @param proc_cls closure for proc | ||
106 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | ||
107 | */ | ||
108 | int | ||
109 | GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle, | ||
110 | const char *subsystem, | ||
111 | const char *name, | ||
112 | GNUNET_STATISTICS_Iterator proc, | ||
113 | void *proc_cls); | ||
114 | |||
115 | |||
116 | /** | ||
97 | * Continuation called by the "get_all" and "get" functions. | 117 | * Continuation called by the "get_all" and "get" functions. |
98 | * | 118 | * |
99 | * @param cls closure | 119 | * @param cls closure |