2 * builtinurl.c - skeleton vpp-api-test plug-in
4 * Copyright (c) 2019 Cisco and/or its affiliates.
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:
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include <vlibapi/api.h>
19 #include <vlibmemory/api.h>
20 #include <vppinfra/error.h>
23 uword unformat_sw_if_index (unformat_input_t * input, va_list * args);
25 /* Declare message IDs */
26 #include <builtinurl/builtinurl.api_enum.h>
27 #include <builtinurl/builtinurl.api_types.h>
31 /* API message ID base */
34 } builtinurl_test_main_t;
36 builtinurl_test_main_t builtinurl_test_main;
38 #define __plugin_msg_base builtinurl_test_main.msg_id_base
39 #include <vlibapi/vat_helper_macros.h>
42 api_builtinurl_enable (vat_main_t * vam)
44 vl_api_builtinurl_enable_t *mp;
47 /* Construct the API message */
48 M (BUILTINURL_ENABLE, mp);
53 /* Wait for a reply... */
58 #include <builtinurl/builtinurl.api_test.c>
61 * fd.io coding-style-patch-verification: ON
64 * eval: (c-set-style "gnu")