Files
asterisk/include/asterisk
George Joseph 6d5941297b 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 18:45:28 -06:00
..
2015-04-11 19:43:43 -06:00
2012-06-25 15:55:25 +00:00
2014-01-12 22:24:27 +00:00
2014-07-24 17:50:46 +00:00
2013-07-25 04:06:32 +00:00
2013-08-22 18:52:41 +00:00
2015-03-17 22:15:42 +00:00
2012-08-30 14:23:28 +00:00
2012-08-30 14:23:28 +00:00
2015-04-20 23:02:06 -05:00
2013-07-03 17:58:45 +00:00
2014-01-06 17:45:25 +00:00
2012-09-21 17:14:59 +00:00
2012-02-24 15:10:35 +00:00
2015-01-26 14:50:40 +00:00
2011-10-11 19:06:29 +00:00
2014-07-21 08:41:29 +00:00
2013-04-22 16:22:00 +00:00
2013-05-08 13:39:08 +00:00
2013-02-14 18:47:56 +00:00
2013-02-15 13:38:12 +00:00