diff options
| author | wangmenglan <[email protected]> | 2023-11-09 17:48:43 +0800 |
|---|---|---|
| committer | wangmenglan <[email protected]> | 2023-11-09 17:49:40 +0800 |
| commit | 49c9a747474408ff454f2de0d458c248d0200047 (patch) | |
| tree | ef0486b66829c7f94010390aa376cbc975e33f0c /service/include | |
| parent | ed092a7f507e53a13de4836315a895461e819fd9 (diff) | |
✨ feat(TSG-17643): add monit_opb toolv4.6.61-20231109
Diffstat (limited to 'service/include')
| -rw-r--r-- | service/include/olp_dev.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/service/include/olp_dev.h b/service/include/olp_dev.h index 8205242..67949a5 100644 --- a/service/include/olp_dev.h +++ b/service/include/olp_dev.h @@ -51,15 +51,25 @@ enum olp_channel_nonrevertive_mode struct olp_channel_timer { int enable; - pthread_mutex_t timer_lock; +}; + +struct channel_runtime +{ + uint8_t traffic_mode; + float r1_optical_power; + float r2_optical_power; + float r3_optical_power; + float r4_optical_power; + + struct timespec last_active_time; }; struct olp_channel { uint32_t olp_channel_id; enum olp_channel_used used; - enum olp_channel_state state; + enum olp_channel_state state; uint32_t en_heartbeat; uint32_t heartbeat_send_interval_in_ms; uint32_t heartbeat_timeout_interval_in_ms; @@ -68,6 +78,8 @@ struct olp_channel struct olp_channel_timer timer; struct olp_dev_desc * dev_desc; + + struct channel_runtime runtime; }; struct olp_network_s @@ -83,6 +95,7 @@ struct olp_dev_desc union { struct olp_network_s network; }; + uint32_t refcnt; struct olp_channel * channels; |
