Austin Schuh | 0de30f3 | 2020-12-06 12:44:28 -0800 | [diff] [blame] | 1 | namespace aos.message_bridge; |
| 2 | |
| 3 | table RemoteMessage { |
| 4 | // Index into the channel datastructure in the log file header. This |
| 5 | // provides the data type. |
| 6 | channel_index:uint (id: 0); |
| 7 | // Time this message was sent on the monotonic clock in nanoseconds on this |
| 8 | // node. |
| 9 | monotonic_sent_time:long (id: 1); |
| 10 | // Time this message was sent on the realtime clock in nanoseconds on this |
| 11 | // node. |
| 12 | realtime_sent_time:long (id: 2); |
| 13 | // Index into the ipc queue of this message. This should start with 0 and |
| 14 | // always monotonically increment if no messages were ever lost. It will |
| 15 | // wrap at a multiple of the queue size. |
| 16 | queue_index:uint (id: 3); |
| 17 | |
| 18 | // The nested flatbuffer. |
| 19 | data:[ubyte] (id: 4); |
| 20 | |
| 21 | // Time this message was sent on the monotonic clock of the remote node in |
| 22 | // nanoseconds. |
| 23 | monotonic_remote_time:int64 = -9223372036854775808 (id: 5); |
| 24 | // Time this message was sent on the realtime clock of the remote node in |
| 25 | // nanoseconds. |
| 26 | realtime_remote_time:int64 = -9223372036854775808 (id: 6); |
| 27 | // Queue index of this message on the remote node. |
| 28 | remote_queue_index:uint32 = 4294967295 (id: 7); |
Austin Schuh | 20ac95d | 2020-12-05 17:24:19 -0800 | [diff] [blame] | 29 | |
Austin Schuh | cdd9027 | 2021-03-15 12:46:16 -0700 | [diff] [blame] | 30 | // Old UUID with a string UUID. |
| 31 | old_boot_uuid:string (id: 8); |
| 32 | |
Austin Schuh | 20ac95d | 2020-12-05 17:24:19 -0800 | [diff] [blame] | 33 | // UUID for this boot. |
Austin Schuh | cdd9027 | 2021-03-15 12:46:16 -0700 | [diff] [blame] | 34 | boot_uuid:[uint8] (id: 9); |
Austin Schuh | 0de30f3 | 2020-12-06 12:44:28 -0800 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | root_type RemoteMessage; |