/* Return adapter handle if found in the list. Return 0 if adapter could not be located, should never happen though.  */
uint32_t mraid_mm_adapter_app_handle(uint32_t unique_id)
/* Return adapter handle if found in the list. Return 0 if adapter could not be located, should never happen though.  */
uint32_t mraid_mm_adapter_app_handle(uint32_t unique_id)
{
	mraid_mmadp_t	*adapter;
	mraid_mmadp_t	*tmp;
	int		index = 0;
	list_for_each_entry_safe(adapter, tmp, &adapters_list_g, list) {
		if (adapter->unique_id == unique_id) {
			return MKADAP(index);
		}
		index++;
	}
	return 0;
}