X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fstatistics%2Fstatistics.h;h=070a0aba5b7fe99f64e0ce00c3ebde3fb26f731b;hb=cb3c882dbb05a797728dfd8b5983ade5a8999eac;hp=c4a79765a3d33a47d3dce2e8f62f07025e12b59f;hpb=17e508354c448c82c35d9149f4aee77e9d5a3ce8;p=oweals%2Fgnunet.git 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 }; + +/** + * Message transmitted if a watched value changes. + */ +struct GNUNET_STATISTICS_WatchValueMessage +{ + /** + * Type: GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE + */ + struct GNUNET_MessageHeader header; + + /** + * 0 for absolute value, 1 for relative value; 2 to make persistent + * (see GNUNET_STATISTICS_SETFLAG_*). + */ + uint32_t flags GNUNET_PACKED; + + /** + * Unique watch identification number (watch + * requests are enumerated in the order they + * are received, the first request having + * a wid of zero). + */ + uint32_t wid GNUNET_PACKED; + + /** + * Reserved (always 0). + */ + uint32_t reserved GNUNET_PACKED; + + /** + * Value. Note that if this is a relative value, it will + * be signed even though the type given here is unsigned. + */ + uint64_t value GNUNET_PACKED; + +}; + + #endif