#include <stdio.h>
#include "../../simdebug.h"

#include "../image_list.h"

#include "imagelist_reader.h"
#include "../obj_node_info.h"


obj_desc_t * imagelist_reader_t::read_node(FILE *fp, obj_node_info_t &node)
{
	ALLOCA(char, desc_buf, node.size);

	image_list_t *desc = new image_list_t();

	// Hajo: Read data
	fread(desc_buf, node.size, 1, fp);
	char * p = desc_buf;

	desc->count = decode_uint16(p);

//	DBG_DEBUG("imagelist_reader_t::read_node()", "count=%d data read (node.size=%i)",desc->count, node.size);

	return desc;
}
