]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pool: update doxygen documentation.
authorEric Leblond <eric@regit.org>
Thu, 30 Aug 2012 07:54:34 +0000 (09:54 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 3 Sep 2012 14:20:32 +0000 (16:20 +0200)
src/util-pool.c
src/util-pool.h

index 270842643938e1e8aecece0a73ee0d68ce38b069..e997dc1728c6b27e27004b34220ff45b798d5c60 100644 (file)
  * 02110-1301, USA.
  */
 
+/**
+ * \defgroup utilpool Pool
+ *
+ * ::Pool are an effective way to maintain a set of ready to use
+ * structures.
+ *
+ * To create a ::Pool, you need to use PoolInit(). You can
+ * get an item from the ::Pool by using PoolGet(). When you're
+ * done with it call PoolReturn().
+ * To destroy the ::Pool, call PoolFree(), it will free all used
+ * memory.
+ *
+ * @{
+ */
+
 /**
  * \file
  *
@@ -49,6 +64,11 @@ static int PoolDataPreAllocated(Pool *p, void *data)
 }
 
 /** \brief Init a Pool
+ *
+ * PoolInit() creates a ::Pool. The Alloc function must only do
+ * allocation stuff. The Free function must not try to free
+ * the PoolBucket::data. This is done by the ::Pool management
+ * system.
  *
  * \param size
  * \param prealloc_size
@@ -629,3 +649,7 @@ void PoolRegisterTests(void) {
 #endif /* UNITTESTS */
 }
 
+
+/**
+ * @}
+ */
index 3e8ae2e6c80a01a43a951056941d92c4aa45dac0..c768258a34ca448166a3134536885a42d28bc407 100644 (file)
  * 02110-1301, USA.
  */
 
+/**
+ * \ingroup utilpool
+ *
+ * @{
+ */
+
 /**
  * \file
  *
@@ -72,3 +78,6 @@ void PoolRegisterTests(void);
 
 #endif /* __UTIL_POOL_H__ */
 
+/**
+ * @}
+ */