KNX IoT
KNX IoT Point API stack implementation
oc_network_events.h
Go to the documentation of this file.
1 /*
2 // Copyright (c) 2016-2018 Intel Corporation
3 // Copyright (c) 2022 Cascoda Ltd.
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, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 */
21 #ifndef OC_NETWORK_EVENTS_H
22 #define OC_NETWORK_EVENTS_H
23 
25 #include "util/oc_process.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 typedef enum {
39 
46 
51 {
55 
59 OC_PROCESS_NAME(oc_network_events);
60 
61 typedef struct oc_message_s oc_message_t;
62 
68 void oc_network_event(oc_message_t *message);
69 
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* OC_NETWORK_EVENTS_H */
void oc_network_event(oc_message_t *message)
receive network event
OC_PROCESS_NAME(oc_network_events)
process network events
oc_interface_event_t
network events
@ NETWORK_INTERFACE_DOWN
network interface down
@ NETWORK_INTERFACE_UP
network interface up
void oc_network_interface_event(oc_interface_event_t event)
initiate network event
void(* interface_event_handler_t)(oc_interface_event_t event)
Callback function to pass the network interface up/down infomation to App.
struct oc_network_interface_cb oc_network_interface_cb_t
Structure to manage network interface handler list.
platform abstraction of networking events (mutexes)
Structure to manage network interface handler list.
interface_event_handler_t handler
the callback (handler)
struct oc_network_interface_cb * next
next in the list