|
|
|
|
@ -6,6 +6,10 @@
|
|
|
|
|
#include "stream_proto.h" |
|
|
|
|
#include "stream_metrics.h" |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
extern "C" { |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#define STREAM_WIRE_VERSION 2 |
|
|
|
|
#define STREAM_WIRE_HEADER 52 |
|
|
|
|
#define STREAM_PATH_MAX 32 |
|
|
|
|
@ -48,4 +52,7 @@ int stream_metric_read(const uint8_t *wire, struct stream_metric_snapshot *snaps
|
|
|
|
|
int stream_end_sign(const struct stream_descriptor *descriptor, uint64_t last, const uint8_t key[32], uint8_t wire[STREAM_END_SIZE]); |
|
|
|
|
int stream_end_verify(const struct stream_descriptor *descriptor, const uint8_t key[32], const uint8_t *wire, size_t length, |
|
|
|
|
uint64_t *last); |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
|