2 *------------------------------------------------------------------
3 * Copyright (c) 2021 Cisco and/or its affiliates.
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:
8 * http://www.apache.org/licenses/LICENSE-2.0
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 *------------------------------------------------------------------
19 #include <vlibapi/api.h>
20 #include <vlibmemory/api.h>
21 #include <vppinfra/error.h>
22 #include <vpp/api/types.h>
24 #include <vpp/api/vpe.api_enum.h>
25 #include <vpp/api/vpe.api_types.h>
27 #define __plugin_msg_base vpe_test_main.msg_id_base
28 #include <vlibapi/vat_helper_macros.h>
30 /* Declare message IDs */
31 #include <vnet/format_fns.h>
35 /* API message ID base */
40 vpe_test_main_t vpe_test_main;
43 api_show_version (vat_main_t *vam)
45 vl_api_show_version_t *mp;
56 api_log_dump (vat_main_t *vam)
58 /* Not yet implemented */
63 api_show_vpe_system_time (vat_main_t *vam)
65 /* Not yet implemented */
70 vl_api_show_version_reply_t_handler (vl_api_show_version_reply_t *mp)
72 vat_main_t *vam = &vat_main;
73 i32 retval = ntohl (mp->retval);
77 errmsg (" program: %s", mp->program);
78 errmsg (" version: %s", mp->version);
79 errmsg (" build date: %s", mp->build_date);
80 errmsg ("build directory: %s", mp->build_directory);
83 vam->result_ready = 1;
87 vl_api_log_details_t_handler (vl_api_log_details_t *mp)
89 /* Not yet implemented */
93 vl_api_show_vpe_system_time_reply_t_handler (
94 vl_api_show_vpe_system_time_reply_t *mp)
96 /* Not yet implemented */
99 #include <vpp/api/vpe.api_test.c>