2 * Copyright (c) 2018 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 #ifndef __MFIB_API_H__
17 #define __MFIB_API_H__
19 #include <vnet/mfib/mfib_types.h>
22 * Forward declare the API type, no need to include the generated api headers
24 struct _vl_api_mfib_path;
27 * Encode and decode functions from the API types to internal types
29 extern void mfib_api_path_encode(const fib_route_path_t *in,
30 struct _vl_api_mfib_path *out);
31 extern int mfib_api_path_decode(struct _vl_api_mfib_path *in,
32 fib_route_path_t *out);
34 extern int mfib_api_table_id_decode(fib_protocol_t fproto,
38 #endif /* __MFIB_API_H__ */