diff options
Diffstat (limited to 'src/statistics/statistics.h')
-rw-r--r-- | src/statistics/statistics.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/statistics/statistics.h b/src/statistics/statistics.h index f5fa48580..c01dca15a 100644 --- a/src/statistics/statistics.h +++ b/src/statistics/statistics.h | |||
@@ -11,12 +11,12 @@ | |||
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 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @author Christian Grothoff | 22 | * @author Christian Grothoff |
@@ -37,8 +37,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
37 | * The struct is be followed by the service name and | 37 | * The struct is be followed by the service name and |
38 | * name of the statistic, both 0-terminated. | 38 | * name of the statistic, both 0-terminated. |
39 | */ | 39 | */ |
40 | struct GNUNET_STATISTICS_ReplyMessage | 40 | struct GNUNET_STATISTICS_ReplyMessage { |
41 | { | ||
42 | /** | 41 | /** |
43 | * Type: GNUNET_MESSAGE_TYPE_STATISTICS_VALUE | 42 | * Type: GNUNET_MESSAGE_TYPE_STATISTICS_VALUE |
44 | */ | 43 | */ |
@@ -56,14 +55,13 @@ struct GNUNET_STATISTICS_ReplyMessage | |||
56 | * The value. | 55 | * The value. |
57 | */ | 56 | */ |
58 | uint64_t value GNUNET_PACKED; | 57 | uint64_t value GNUNET_PACKED; |
59 | |||
60 | }; | 58 | }; |
61 | 59 | ||
62 | /** | 60 | /** |
63 | * Flag for the `struct GNUNET_STATISTICS_ReplyMessage` UID only. | 61 | * Flag for the `struct GNUNET_STATISTICS_ReplyMessage` UID only. |
64 | * Note that other messages use #GNUNET_STATISTICS_SETFLAG_PERSISTENT. | 62 | * Note that other messages use #GNUNET_STATISTICS_SETFLAG_PERSISTENT. |
65 | */ | 63 | */ |
66 | #define GNUNET_STATISTICS_PERSIST_BIT ((uint32_t) (1LLU<<31)) | 64 | #define GNUNET_STATISTICS_PERSIST_BIT ((uint32_t)(1LLU << 31)) |
67 | 65 | ||
68 | /** | 66 | /** |
69 | * The value being set is an absolute change. | 67 | * The value being set is an absolute change. |
@@ -89,8 +87,7 @@ struct GNUNET_STATISTICS_ReplyMessage | |||
89 | * by the subsystem name and the name of | 87 | * by the subsystem name and the name of |
90 | * the statistic (each 0-terminated). | 88 | * the statistic (each 0-terminated). |
91 | */ | 89 | */ |
92 | struct GNUNET_STATISTICS_SetMessage | 90 | struct GNUNET_STATISTICS_SetMessage { |
93 | { | ||
94 | /** | 91 | /** |
95 | * Type: #GNUNET_MESSAGE_TYPE_STATISTICS_SET | 92 | * Type: #GNUNET_MESSAGE_TYPE_STATISTICS_SET |
96 | */ | 93 | */ |
@@ -107,15 +104,13 @@ struct GNUNET_STATISTICS_SetMessage | |||
107 | * be signed even though the type given here is unsigned. | 104 | * be signed even though the type given here is unsigned. |
108 | */ | 105 | */ |
109 | uint64_t value GNUNET_PACKED; | 106 | uint64_t value GNUNET_PACKED; |
110 | |||
111 | }; | 107 | }; |
112 | 108 | ||
113 | 109 | ||
114 | /** | 110 | /** |
115 | * Message transmitted if a watched value changes. | 111 | * Message transmitted if a watched value changes. |
116 | */ | 112 | */ |
117 | struct GNUNET_STATISTICS_WatchValueMessage | 113 | struct GNUNET_STATISTICS_WatchValueMessage { |
118 | { | ||
119 | /** | 114 | /** |
120 | * Type: #GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE | 115 | * Type: #GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE |
121 | */ | 116 | */ |
@@ -145,7 +140,6 @@ struct GNUNET_STATISTICS_WatchValueMessage | |||
145 | * be signed even though the type given here is unsigned. | 140 | * be signed even though the type given here is unsigned. |
146 | */ | 141 | */ |
147 | uint64_t value GNUNET_PACKED; | 142 | uint64_t value GNUNET_PACKED; |
148 | |||
149 | }; | 143 | }; |
150 | GNUNET_NETWORK_STRUCT_END | 144 | GNUNET_NETWORK_STRUCT_END |
151 | 145 | ||