Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
connectionList.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 connectionList_h
25 #define connectionList_h
26 
27 struct connection_list;
28 typedef struct connection_list ConnectionList;
29 
30 #include <hicn/core/connection.h>
31 
38 ConnectionList *connectionList_Create(void);
39 
43 void connectionList_Destroy(ConnectionList **listPtr);
44 
51 void connectionList_Append(ConnectionList *list, Connection *entry);
52 
58 size_t connectionList_Length(const ConnectionList *list);
59 
69 Connection *connectionList_Get(ConnectionList *list, size_t index);
70 #endif // connectionList_h
connectionList_Get
Connection * connectionList_Get(ConnectionList *list, size_t index)
connectionList_Length
size_t connectionList_Length(const ConnectionList *list)
connectionList_Append
void connectionList_Append(ConnectionList *list, Connection *entry)
connectionList_Create
ConnectionList * connectionList_Create(void)
connectionList_Destroy
void connectionList_Destroy(ConnectionList **listPtr)
connection.h
Wrapper for different types of connections.