[idd] transport: centralize source identity

This commit is contained in:
Geoffrey McRae
2026-08-13 21:42:24 +10:00
parent 84bda112ac
commit cd6bcc3a41
4 changed files with 24 additions and 23 deletions

View File

@@ -40,6 +40,20 @@ struct SourceKey
uint32_t generation = 0;
};
inline bool operator==(const SourceKey& left, const SourceKey& right)
{
return
left.backend == right.backend &&
left.epoch == right.epoch &&
left.client == right.client &&
left.generation == right.generation;
}
inline bool operator!=(const SourceKey& left, const SourceKey& right)
{
return !(left == right);
}
enum class InteractionResult
{
ACCEPTED,