FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
builtinurl.h
Go to the documentation of this file.
1 
2 /*
3  * builtinurl.h - built-in URLs for the http static server
4  *
5  * Copyright (c) 2019 Cisco and/or its affiliates.
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at:
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #ifndef __included_builtinurl_h__
19 #define __included_builtinurl_h__
20 
21 #include <vnet/vnet.h>
22 #include <vnet/ip/ip.h>
23 #include <vnet/ethernet/ethernet.h>
24 
25 #include <vppinfra/hash.h>
26 #include <vppinfra/error.h>
27 
28 typedef struct
29 {
30  /* API message ID base */
32 
33  /* GET / POST handler registration function */
34  void (*register_handler) (void *, char *, int);
35 
36  /* Been there, done that */
38 
39  /* convenience */
44 
46 
48 
49 #endif /* __included_builtinurl_h__ */
50 
51 /*
52  * fd.io coding-style-patch-verification: ON
53  *
54  * Local Variables:
55  * eval: (c-set-style "gnu")
56  * End:
57  */
u16
unsigned short u16
Definition: types.h:57
ethernet.h
builtinurl_main_t::ethernet_main
ethernet_main_t * ethernet_main
Definition: builtinurl.h:42
error.h
ethernet_main_t_
Definition: ethernet.h:289
builtinurl_main_t::vnet_main
vnet_main_t * vnet_main
Definition: builtinurl.h:41
builtinurl_main_t
Definition: builtinurl.h:28
builtinurl_main_t::vlib_main
vlib_main_t * vlib_main
Definition: builtinurl.h:40
builtinurl_main_t::initialized
int initialized
Definition: builtinurl.h:37
vnet_main_t
Definition: vnet.h:76
ip.h
builtinurl_handler_init
void builtinurl_handler_init(builtinurl_main_t *bm)
Definition: builtins.c:188
vlib_main_t
Definition: main.h:102
hash.h
builtinurl_main
builtinurl_main_t builtinurl_main
Definition: builtinurl.c:34
vnet.h
builtinurl_main_t::msg_id_base
u16 msg_id_base
Definition: builtinurl.h:31