|Summary:||ASTERISK-14909: Finish implementation of OBJ_MULTIPLE support in astobj2|
|Reporter:||Kevin P. Fleming (kpfleming)||Labels:|
|Date Opened:||2009-09-29 11:08:40||Date Closed:||2009-10-21 16:24:46|
|Description:||The ao2_find() and ao2_callback() functions were designed to be able to return multiple results if the caller specifies OBJ_MULTIPLE *without* OBJ_NODATA, but the implementation was never finished. This causes users of this API to have to use non-hash-based find/callback operations or to implement their object manipulation actions in the callback function that they provide, which leads to complex and hard to maintain code in some cases.|
I will post a patch to the ReviewBoard to add this functionality, and use it in the ast_channel_iterator API calls to improve their efficiency.