Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
fibEntryList.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2019 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:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
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.
14  */
15 
24 #ifndef fibEntryList_h
25 #define fibEntryList_h
26 
28 
29 struct fib_entry_list;
30 typedef struct fib_entry_list FibEntryList;
31 
45 FibEntryList *fibEntryList_Create(void);
46 
55 void fibEntryList_Destroy(FibEntryList **listPtr);
56 
67 void fibEntryList_Append(FibEntryList *list, FibEntry *fibEntry);
68 
83 size_t fibEntryList_Length(const FibEntryList *list);
84 
95 const FibEntry *fibEntryList_Get(const FibEntryList *list, size_t index);
96 #endif // fibEntryList_h
fibEntryList_Length
size_t fibEntryList_Length(const FibEntryList *list)
fibEntry.h
A forwarding entry in the FIB table.
fibEntryList_Destroy
void fibEntryList_Destroy(FibEntryList **listPtr)
fibEntryList_Get
const FibEntry * fibEntryList_Get(const FibEntryList *list, size_t index)
fibEntryList_Append
void fibEntryList_Append(FibEntryList *list, FibEntry *fibEntry)
fibEntryList_Create
FibEntryList * fibEntryList_Create(void)