diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:13 +0100 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:13 +0100 |
commit | ca118555214a176728b9aab87849391344306d6d (patch) | |
tree | 833cffdd4066a7114b1d79d6eeaa2e0152408fc8 /include/common.h |
Initial commit.
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h new file mode 100644 index 0000000..7386a34 --- /dev/null +++ b/include/common.h @@ -0,0 +1,19 @@ +/** +* @file common.h +* @author Paul Oliver +* +* This module controls the 'common pipe', which is the FIFO file through which +* communication between different simulations can occur. By calling SEND, +* processes may output local instructions through the pipe. These instructions +* may then be read by processes running on a different simulation instance. +*/ + +#ifndef SALIS_COMMON_H +#define SALIS_COMMON_H + +void _sal_comm_init(string pipe); +void _sal_comm_quit(void); +void _sal_comm_send(uint8 inst); +uint8 _sal_comm_receive(void); + +#endif |