ROFL-hal  v0.6.0dev
cmm.h
Go to the documentation of this file.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 
5 #ifndef CMM__H
6 #define CMM__H
7 
8 #include "hal.h"
9 #include "hal_utils.h"
10 #include <rofl/datapath/pipeline/monitoring.h>
11 
12 
20 //C++ extern C
21 HAL_BEGIN_DECLS
22 
28 hal_result_t hal_cmm_notify_port_add(switch_port_snapshot_t* port_snapshot);
29 
35 hal_result_t hal_cmm_notify_port_delete(switch_port_snapshot_t* port_snapshot);
36 
42 hal_result_t hal_cmm_notify_port_status_changed(switch_port_snapshot_t* port_snapshot);
43 
49 hal_result_t hal_cmm_notify_monitoring_state_changed(monitoring_snapshot_state_t* monitoring_snapshot);
50 
51 //C++ extern C
52 HAL_END_DECLS
53 
54 /* OpenFlow related events */
56 //TODO: Add more versions here...
57 
58 #endif
hal_result_t hal_cmm_notify_monitoring_state_changed(monitoring_snapshot_state_t *monitoring_snapshot)
Notify a monitoring state change to CMM.
HAL_BEGIN_DECLS hal_result_t hal_cmm_notify_port_add(switch_port_snapshot_t *port_snapshot)
Notify the CMM that a port has been added to the system.
Hardware Abstraction Layer (HAL) main header file.
hal_result_t hal_cmm_notify_port_status_changed(switch_port_snapshot_t *port_snapshot)
Notify the CMM of a port status change.
HAL cmm (control and management module) OpenFlow specific notifications interface.
enum hal_result hal_result_t
HAL return values.
hal_result_t hal_cmm_notify_port_delete(switch_port_snapshot_t *port_snapshot)
Notifies the CMM that port has been deleted from the platform.