[asterisk-commits] akshayb: branch akshayb/ao2_containers r265271 - /team/akshayb/ao2_containers...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun May 23 17:39:08 CDT 2010
Author: akshayb
Date: Sun May 23 17:39:06 2010
New Revision: 265271
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=265271
Log:
Minor Changes in astobj2.c and astobj2.h. Next Changes to done to initialize the ao2_container
Modified:
team/akshayb/ao2_containers/include/asterisk/astobj2.h
Modified: team/akshayb/ao2_containers/include/asterisk/astobj2.h
URL: http://svnview.digium.com/svn/asterisk/team/akshayb/ao2_containers/include/asterisk/astobj2.h?view=diff&rev=265271&r1=265270&r2=265271
==============================================================================
--- team/akshayb/ao2_containers/include/asterisk/astobj2.h (original)
+++ team/akshayb/ao2_containers/include/asterisk/astobj2.h Sun May 23 17:39:06 2010
@@ -681,6 +681,20 @@
* value of OBJ_POINTER passed to ao2_callback().
*/
typedef int (ao2_hash_fn)(const void *obj, const int flags);
+
+/*!
+ * ao2_link_fn is function in variable part of ao2_container. ao2_link_fn can
+ * for different type of container based on its data structure.
+ */
+
+typedef void *(ao2_link_fn)(ao2_container *c, void *userdata);
+
+/*!
+ * ao2_unlink_fn is function in variable part of ao2_container. ao2_unlink_fn
+ * can be used to remove a object from the container.
+ */
+
+typedef void *(ao2_unlink_fn)(ao2_container *c, void *userdata);
/*! \name Object Containers
* Here start declarations of containers.
More information about the asterisk-commits
mailing list