summaryrefslogtreecommitdiff
path: root/src/logTypes.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-04-11 18:12:51 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2026-04-11 18:12:51 +0100
commit3ce6cf305572709332d7329674ec45c987a093ad (patch)
tree75a018f6dcf929182961bddca7601181fac415e4 /src/logTypes.hpp
parent72bfa9dd305258789b0d2e80f8af13962e5aac42 (diff)
downloadwebstat-3ce6cf305572709332d7329674ec45c987a093ad.tar.bz2
webstat-3ce6cf305572709332d7329674ec45c987a093ad.tar.xz
webstat-3ce6cf305572709332d7329674ec45c987a093ad.zip
Introduce MD5 from libmd, use it for hashing queuedLines for park path
Diffstat (limited to 'src/logTypes.hpp')
-rw-r--r--src/logTypes.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logTypes.hpp b/src/logTypes.hpp
index 71393b2..6556d5c 100644
--- a/src/logTypes.hpp
+++ b/src/logTypes.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <md5.h>
#include <optional>
#include <scn/scan.h>
#include <string>
@@ -35,6 +36,7 @@ namespace WebStat {
};
using Crc32Value = uint32_t;
+ using EntityHash = std::array<uint8_t, MD5_DIGEST_LENGTH>;
using Entity = std::tuple<Crc32Value, EntityType, std::string_view>;
}