library/src/datastructures/BP-DataLists.cc
// activates all entries in a list, starting with the first
activates all entries in a list, starting with the first
activates all entries in a list starting with the first
BP_ERROR_T BP_DataListActivateAllEntries(P_BP_DATA_LIST data_list)
{
	if(!data_list)
		return ERR_FAILURE;
	if(!data_list->entries_n)
		return ERR_FAILURE;
	data_list->last_entry_activated = 0;
	while(BP_DataListActivateNextEntry(data_list) == ERR_SUCCESS)
	{
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BP_DataListActivateAllEntries ( P_BP_DATA_LIST data_list ) { if ( ! data_list ) return ERR_FAILURE ; if ( ! data_list -> entries_n ) return ERR_FAILURE ; data_list -> last_entry_activated = 0 ; while ( BP_DataListActivateNextEntry ( data_list ) == ERR_SUCCESS ) { } return ERR_SUCCESS ; }
activates all entries in a list, starting with the first
activates all entries in a list starting with the first
// ensure we have a data list item // ensure we have some entries in the list // reset last entry activation // activate all entries in the list // return indicating success