KNX IoT
KNX IoT Point API stack implementation
oc_network_monitor.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * Copyright 2018 Samsung Electronics All Rights Reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing,
12  * software distributed under the License is distributed on an
13  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14  * either express or implied. See the License for the specific
15  * language governing permissions and limitations under the License.
16  *
17  ****************************************************************************/
23 #ifndef OC_NETWORK_HELPERS_H
24 #define OC_NETWORK_HELPERS_H
25 
26 #include "oc_network_events.h"
27 #include "oc_session_events.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
40 
48 
56 
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif /* OC_NETWORK_HELPERS_H */
network events (network interfaces going up/down)
void(* interface_event_handler_t)(oc_interface_event_t event)
Callback function to pass the network interface up/down infomation to App.
int oc_add_session_event_callback(session_event_handler_t cb)
Add the callback to receive change notifications for Network interface event.
int oc_remove_session_event_callback(session_event_handler_t cb)
Remove the callback to receive change notifications for Network interface event.
int oc_remove_network_interface_event_callback(interface_event_handler_t cb)
Remove the callback to receive change notifications for Network interface event.
int oc_add_network_interface_event_callback(interface_event_handler_t cb)
Add the callback to receive change notifications for Network interface event.
session events
void(* session_event_handler_t)(const oc_endpoint_t *endpoint, oc_session_state_t state)
Callback function to pass the session event information to the Application.