FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
vpe_types.api
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2016 Cisco and/or its affiliates.
3  * Copyright (c) 2019 Vinci Consulting Corp. All Rights Reserved.
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 option version = "1.0.0";
17 
18 typedef version
19 {
20  u32 major;
23 
24  /* since we can't guarantee that only fixed length args will follow the typedef,
25  string type not supported for typedef for now. */
26  u8 pre_release[17]; /* 16 + "\0" */
27  u8 build_metadata[17]; /* 16 + "\0" */
28 };
29 
30  typedef f64 timestamp;
31  typedef f64 timedelta;
32 
33  enum log_level {
34  VPE_API_LOG_LEVEL_EMERG = 0, /* emerg */
35  VPE_API_LOG_LEVEL_ALERT = 1, /* alert */
36  VPE_API_LOG_LEVEL_CRIT = 2, /* crit */
37  VPE_API_LOG_LEVEL_ERR = 3, /* err */
38  VPE_API_LOG_LEVEL_WARNING = 4, /* warn */
39  VPE_API_LOG_LEVEL_NOTICE = 5, /* notice */
40  VPE_API_LOG_LEVEL_INFO = 6, /* info */
41  VPE_API_LOG_LEVEL_DEBUG = 7, /* debug */
42  VPE_API_LOG_LEVEL_DISABLED = 8, /* disabled */
43 };
VPE_API_LOG_LEVEL_INFO
@ VPE_API_LOG_LEVEL_INFO
Definition: vpe_types.api:40
VPE_API_LOG_LEVEL_EMERG
@ VPE_API_LOG_LEVEL_EMERG
Definition: vpe_types.api:34
VPE_API_LOG_LEVEL_DEBUG
@ VPE_API_LOG_LEVEL_DEBUG
Definition: vpe_types.api:41
build_metadata
u8 build_metadata[17]
Definition: vpe_types.api:27
minor
u32 minor
Definition: vpe_types.api:21
log_level
log_level
Definition: vpe_types.api:33
VPE_API_LOG_LEVEL_ALERT
@ VPE_API_LOG_LEVEL_ALERT
Definition: vpe_types.api:35
VPE_API_LOG_LEVEL_NOTICE
@ VPE_API_LOG_LEVEL_NOTICE
Definition: vpe_types.api:39
version
option version
Definition: vpe_types.api:16
f64
double f64
Definition: types.h:142
VPE_API_LOG_LEVEL_ERR
@ VPE_API_LOG_LEVEL_ERR
Definition: vpe_types.api:37
VPE_API_LOG_LEVEL_DISABLED
@ VPE_API_LOG_LEVEL_DISABLED
Definition: vpe_types.api:42
u32
unsigned int u32
Definition: types.h:88
patch
u32 patch
Definition: vpe_types.api:22
VPE_API_LOG_LEVEL_CRIT
@ VPE_API_LOG_LEVEL_CRIT
Definition: vpe_types.api:36
pre_release
u8 pre_release[17]
Definition: vpe_types.api:26
u8
unsigned char u8
Definition: types.h:56
timedelta
f64 timedelta
Definition: vpe_types.api:31
VPE_API_LOG_LEVEL_WARNING
@ VPE_API_LOG_LEVEL_WARNING
Definition: vpe_types.api:38
timestamp
f64 timestamp
Definition: vpe_types.api:28