Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
missive.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 
25 #ifndef missive_h
26 #define missive_h
27 
28 #include <hicn/messenger/missiveType.h>
29 
30 struct missive;
31 typedef struct missive Missive;
32 
45 Missive *missive_Create(MissiveType missiveType, unsigned connectionid);
46 
56 Missive *missive_Acquire(const Missive *missive);
57 
65 void missive_Release(Missive **missivePtr);
66 
76 MissiveType missive_GetType(const Missive *missive);
77 
88 unsigned missive_GetConnectionId(const Missive *missive);
89 #endif // missive_h
missive_Create
Missive * missive_Create(MissiveType missiveType, unsigned connectionid)
missive_GetConnectionId
unsigned missive_GetConnectionId(const Missive *missive)
missive_Acquire
Missive * missive_Acquire(const Missive *missive)
missive_GetType
MissiveType missive_GetType(const Missive *missive)
missive_Release
void missive_Release(Missive **missivePtr)