aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/statistics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics/statistics.h')
-rw-r--r--src/statistics/statistics.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/statistics/statistics.h b/src/statistics/statistics.h
index c4a79765a..070a0aba5 100644
--- a/src/statistics/statistics.h
+++ b/src/statistics/statistics.h
@@ -91,4 +91,43 @@ struct GNUNET_STATISTICS_SetMessage
91 91
92}; 92};
93 93
94
95/**
96 * Message transmitted if a watched value changes.
97 */
98struct GNUNET_STATISTICS_WatchValueMessage
99{
100 /**
101 * Type: GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE
102 */
103 struct GNUNET_MessageHeader header;
104
105 /**
106 * 0 for absolute value, 1 for relative value; 2 to make persistent
107 * (see GNUNET_STATISTICS_SETFLAG_*).
108 */
109 uint32_t flags GNUNET_PACKED;
110
111 /**
112 * Unique watch identification number (watch
113 * requests are enumerated in the order they
114 * are received, the first request having
115 * a wid of zero).
116 */
117 uint32_t wid GNUNET_PACKED;
118
119 /**
120 * Reserved (always 0).
121 */
122 uint32_t reserved GNUNET_PACKED;
123
124 /**
125 * Value. Note that if this is a relative value, it will
126 * be signed even though the type given here is unsigned.
127 */
128 uint64_t value GNUNET_PACKED;
129
130};
131
132
94#endif 133#endif