incoming-face-id.h
1 
22 /* Note: This file should be named forward-flags.h (like data.h) but
23  * we make it forwarding-flags-impl.h because forwarding-flags.h is already in
24  * the public include directory for backwards compatibility reasons.
25  */
26 
27 #ifndef NDN_INCOMING_FACE_ID_H
28 #define NDN_INCOMING_FACE_ID_H
29 
30 #include "lp-packet.h"
31 #include <ndn-cpp/c/lp/incoming-face-id-types.h>
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 struct ndn_LpPacket;
38 
43 static __inline void
44 ndn_IncomingFaceId_initialize(struct ndn_IncomingFaceId *self)
45 {
46  self->faceId = (uint64_t)-1;
47 }
48 
55 const struct ndn_IncomingFaceId *
56 ndn_IncomingFaceId_getFirstHeader(const struct ndn_LpPacket *lpPacket);
57 
66 ndn_Error
67 ndn_IncomingFaceId_add
68  (struct ndn_LpPacket *lpPacket, struct ndn_IncomingFaceId **incomingFaceId);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif
An ndn_LpPacket holds a list of LP packet header fields and an optional fragment wire encoding...
Definition: lp-packet-types.h:57
Copyright (C) 2016 Regents of the University of California.
Definition: incoming-face-id-types.h:36