Nicolas Palpacuer | 0f19b1a | 2018-06-07 17:29:31 -0400 | [diff] [blame] | 1 | #ifndef OPENOLT_STATS_COLLECTION_H_ |
| 2 | #define OPENOLT_STATS_COLLECTION_H_ |
| 3 | |
| 4 | #include <openolt.grpc.pb.h> |
| 5 | |
| 6 | extern "C" |
| 7 | { |
| 8 | #include <bal_model_types.h> |
| 9 | } |
| 10 | |
| 11 | void start_collecting_statistics(); |
| 12 | void stop_collecting_statistics(); |
| 13 | openolt::PortStatistics* get_default_port_statistics(); |
| 14 | openolt::PortStatistics* collectPortStatistics(int intf_id, bcmbal_intf_type intf_type); |
Shad Ansari | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 15 | #if 0 |
Nicolas Palpacuer | 0f19b1a | 2018-06-07 17:29:31 -0400 | [diff] [blame] | 16 | openolt::FlowStatistics* get_default_flow_statistics(); |
| 17 | openolt::FlowStatistics* collectFlowStatistics(bcmbal_flow_id flow_id, bcmbal_flow_type flow_type); |
Shad Ansari | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 18 | #endif |
Nicolas Palpacuer | 0f19b1a | 2018-06-07 17:29:31 -0400 | [diff] [blame] | 19 | void* stats_collection(void* x); |
| 20 | void register_new_flow(bcmbal_flow_key key); |
| 21 | |
| 22 | |
| 23 | #endif |