KNX IoT
KNX IoT Point API stack implementation
oc_events.h
Go to the documentation of this file.
1 /*
2  // Copyright (c) 2016 Intel Corporation
3  // Copyright (c) 2021 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  */
22 #ifndef OC_EVENTS_H
23 #define OC_EVENTS_H
24 
25 #include "oc_config.h"
26 #include "util/oc_process.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 typedef enum {
34  UDP_TO_TLS_EVENT,
35  INIT_TLS_CONN_EVENT,
36  RI_TO_TLS_EVENT,
37  INBOUND_RI_EVENT,
41  TLS_READ_DECRYPTED_DATA,
42  TLS_WRITE_APPLICATION_DATA,
45  TLS_CLOSE_ALL_SESSIONS,
52  __NUM_OC_EVENT_TYPES__
53 } oc_events_t;
54 
55 extern oc_process_event_t oc_events[];
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* OC_EVENTS_H */
oc_events_t
Definition: oc_events.h:32
@ INBOUND_OSCORE_EVENT
inbound network event, payload is encrypted with oscore
Definition: oc_events.h:46
@ OUTBOUND_NETWORK_EVENT
outbound network event
Definition: oc_events.h:38
@ OUTBOUND_NETWORK_EVENT_ENCRYPTED
outbound network event, payload is encrypted
Definition: oc_events.h:39
@ INTERFACE_DOWN
network interface down
Definition: oc_events.h:43
@ INTERFACE_UP
network interface up
Definition: oc_events.h:44
@ OUTBOUND_GROUP_OSCORE_EVENT
outbound multicast network event, payload is encrypted with oscore
Definition: oc_events.h:50
@ OUTBOUND_OSCORE_EVENT
outbound network event, payload is encrypted with oscore
Definition: oc_events.h:48
@ INBOUND_NETWORK_EVENT
inbound network event
Definition: oc_events.h:33