diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:51:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:51:21 +0000 |
commit | 6fd3e715cae09fa6e657c96f1c6f9711ee51f42f (patch) | |
tree | edbc42f37889069033e57da201fef242939a6e0f /src/include/gnunet_statistics_service.h | |
parent | 502af2167f7c218366666ca4944bd7cc54b5b19a (diff) | |
download | gnunet-6fd3e715cae09fa6e657c96f1c6f9711ee51f42f.tar.gz gnunet-6fd3e715cae09fa6e657c96f1c6f9711ee51f42f.zip |
indentation
Diffstat (limited to 'src/include/gnunet_statistics_service.h')
-rw-r--r-- | src/include/gnunet_statistics_service.h | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/include/gnunet_statistics_service.h b/src/include/gnunet_statistics_service.h index 1807d3de0..90cc612df 100644 --- a/src/include/gnunet_statistics_service.h +++ b/src/include/gnunet_statistics_service.h | |||
@@ -61,10 +61,9 @@ 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, | 64 | typedef int (*GNUNET_STATISTICS_Iterator) (void *cls, const char *subsystem, |
65 | const char *subsystem, | 65 | const char *name, uint64_t value, |
66 | const char *name, | 66 | int is_persistent); |
67 | uint64_t value, int is_persistent); | ||
68 | 67 | ||
69 | /** | 68 | /** |
70 | * Get handle for the statistics service. | 69 | * Get handle for the statistics service. |
@@ -73,9 +72,11 @@ typedef int (*GNUNET_STATISTICS_Iterator) (void *cls, | |||
73 | * @param cfg services configuration in use | 72 | * @param cfg services configuration in use |
74 | * @return handle to use | 73 | * @return handle to use |
75 | */ | 74 | */ |
76 | struct GNUNET_STATISTICS_Handle | 75 | struct GNUNET_STATISTICS_Handle *GNUNET_STATISTICS_create (const char |
77 | *GNUNET_STATISTICS_create (const char *subsystem, | 76 | *subsystem, |
78 | const struct GNUNET_CONFIGURATION_Handle *cfg); | 77 | const struct |
78 | GNUNET_CONFIGURATION_Handle | ||
79 | *cfg); | ||
79 | 80 | ||
80 | 81 | ||
81 | /** | 82 | /** |
@@ -102,11 +103,9 @@ void GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, | |||
102 | * @param proc_cls closure for proc | 103 | * @param proc_cls closure for proc |
103 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 104 | * @return GNUNET_OK on success, GNUNET_SYSERR on error |
104 | */ | 105 | */ |
105 | int | 106 | int GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle, |
106 | GNUNET_STATISTICS_watch (struct GNUNET_STATISTICS_Handle *handle, | 107 | const char *subsystem, const char *name, |
107 | const char *subsystem, | 108 | GNUNET_STATISTICS_Iterator proc, void *proc_cls); |
108 | const char *name, | ||
109 | GNUNET_STATISTICS_Iterator proc, void *proc_cls); | ||
110 | 109 | ||
111 | 110 | ||
112 | /** | 111 | /** |
@@ -169,9 +168,9 @@ void GNUNET_STATISTICS_get_cancel (struct GNUNET_STATISTICS_GetHandle *gh); | |||
169 | * @param value new value to set | 168 | * @param value new value to set |
170 | * @param make_persistent should the value be kept across restarts? | 169 | * @param make_persistent should the value be kept across restarts? |
171 | */ | 170 | */ |
172 | void | 171 | void GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle, |
173 | GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle, | 172 | const char *name, uint64_t value, |
174 | const char *name, uint64_t value, int make_persistent); | 173 | int make_persistent); |
175 | 174 | ||
176 | /** | 175 | /** |
177 | * Set statistic value for the peer. Will always use our | 176 | * Set statistic value for the peer. Will always use our |
@@ -182,9 +181,9 @@ GNUNET_STATISTICS_set (struct GNUNET_STATISTICS_Handle *handle, | |||
182 | * @param delta change in value (added to existing value) | 181 | * @param delta change in value (added to existing value) |
183 | * @param make_persistent should the value be kept across restarts? | 182 | * @param make_persistent should the value be kept across restarts? |
184 | */ | 183 | */ |
185 | void | 184 | void GNUNET_STATISTICS_update (struct GNUNET_STATISTICS_Handle *handle, |
186 | GNUNET_STATISTICS_update (struct GNUNET_STATISTICS_Handle *handle, | 185 | const char *name, int64_t delta, |
187 | const char *name, int64_t delta, int make_persistent); | 186 | int make_persistent); |
188 | 187 | ||
189 | 188 | ||
190 | 189 | ||