A Protocol Independent Hierarchical FIB (VPP-352)
[vpp.git] / vnet / vnet / adj / adj_alloc.h
similarity index 87%
rename from vnet/vnet/ip/adj_alloc.h
rename to vnet/vnet/adj/adj_alloc.h
index a10146c..7d1a3fb 100644 (file)
@@ -16,7 +16,8 @@
 #ifndef __adj_alloc_h__
 #define __adj_alloc_h__
 
-/* 
+/**
+ * @brief
  * Adjacency allocator: heap-like in that the code
  * will dole out contiguous chunks of n items. In the interests of 
  * thread safety, we don't bother about coalescing free blocks of size r
@@ -43,10 +44,9 @@ static inline aa_header_t * aa_header (void * v)
   return vec_aligned_header (v, sizeof (aa_header_t), sizeof (void *));
 }
 
-ip_adjacency_t * 
-aa_alloc (ip_adjacency_t * adjs, ip_adjacency_t **blockp, u32 n);
-void aa_free (ip_adjacency_t * adjs, ip_adjacency_t * adj);
-ip_adjacency_t * aa_bootstrap (ip_adjacency_t * adjs, u32 n);
+extern ip_adjacency_t *aa_alloc(void);
+extern void aa_free (ip_adjacency_t * adj);
+extern void aa_bootstrap (u32 n);
 
 format_function_t format_adj_allocation;