ndn-lite
Data Structures | Macros | Typedefs | Functions
face-table.h File Reference
#include "face.h"
#include "../ndn-constants.h"

Go to the source code of this file.

Data Structures

struct  ndn_face_table
 Face Table. More...
 

Macros

#define NDN_FACE_TABLE_RESERVE_SIZE(entry_count)   (sizeof(ndn_face_table_t) + sizeof(ndn_face_intf_t*) * (entry_count))
 The memory reserved for FaceTable. More...
 

Typedefs

typedef struct ndn_face_table ndn_face_table_t
 Face Table. More...
 

Functions

void ndn_facetab_init (void *memory, ndn_table_id_t capacity)
 Initialize FaceTable at specified memory space. More...
 
ndn_table_id_t ndn_facetab_register (ndn_face_table_t *self, ndn_face_intf_t *face)
 Register a face and assign an ID to it. More...
 
void ndn_facetab_unregister (ndn_face_table_t *self, ndn_table_id_t id)
 Unregister a face from FaceTable only. More...