Пример #1
0
void gbox_free_card(struct gbox_card *card)
{
	ll_destroy_data_NULL(card->badsids);
	ll_destroy_data_NULL(card->goodsids);
	add_garbage(card);
	return;
}
Пример #2
0
void dvbapi_clear_channel_cache(void)
{
	if (USE_OPENXCAS) // Why?
		return;
		
	if(channel_cache)
	{
		ll_destroy_data_NULL(channel_cache);
	}
}
Пример #3
0
void gbox_remove_cards_without_goodsids(LLIST *card_list)
{
	if(card_list)
	{
		LL_ITER it = ll_iter_create(card_list);
		struct gbox_card *card;
		while((card = ll_iter_next(&it)))
		{
			if(ll_count(card->goodsids) == 0)
			{
				ll_iter_remove(&it);
				gbox_free_card(card);
			}
			else
			{
				ll_destroy_data_NULL(card->badsids);
			}
		}
	}
	return;
}