This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
Versioning of all IPC capable elkodon_cal
constructs
#51
Labels
elkodon_cal
constructs
#51
Problem
When two
elkodon_cal
constructs interact with each other, we need to add some initial versioning information to ensure that not to incompatible versions of the same constructs are interacting. This could lead to undefined behavior and hard to unravel bugs.They could be, for instance incompatible since the member order of shared management constructs has changed or members have been added/removed. Or the internal communication protocol was updated.
Solution
Introduce a
const SHM_API_VERSION: u64
constant insideelkodon_cal
, that must be checked before any of these constructs start to interact on an ipc level.Constructs that use shared memory could add this constant to the beginning, as the first value, to their shared memory. If the construct does not use shared memory, one could create a file and store the number value is binary, or human-readable value, in there.
The text was updated successfully, but these errors were encountered: