Files
asterisk/tests
George Joseph 7a7e9733c2 vector: Traversal, retrieval, insert and locking enhancements
Renamed AST_VECTOR_INSERT to AST_VECTOR_REPLACE because it really
does replace not insert.  The few users of AST_VECTOR_INSERT were
refactored.  Because these are macros, there should be no ABI
compatibility issues.

Added AST_VECTOR_INSERT_AT that actually inserts an element into the
vector at a specific index pushing existing elements to the right.

Added AST_VECTOR_GET_CMP that can retrieve from the vector based
on a user-provided compare function.

Added AST_VECTOR_CALLBACK function that will execute a function
for each element in the vector.  Similar to ao2_callback and
ao2_callback_data functions although the vector callback can take
a variable number of arguments.  This should allow easy migration
to a vector where a container might be too heavy.

Added read/write locked vector and lock manipulation macros.

Added unit tests.

ASTERISK-25045 #close

Change-Id: I2e07ecc709d2f5f91bcab8904e5e9340609b00e0
2015-05-04 19:46:51 -05:00
..
2012-10-14 21:56:13 +00:00
2014-07-22 14:22:00 +00:00
2013-08-25 18:12:42 +00:00
2014-07-21 17:01:05 +00:00
2014-07-22 14:22:00 +00:00
2012-09-22 20:43:30 +00:00
2013-08-16 17:33:21 +00:00
2014-07-22 14:22:00 +00:00
2014-07-22 14:22:00 +00:00