Define some functions and responsabilities for image generation.

Still very preliminary work.
This commit is contained in:
Vreixo Formoso
2007-12-16 19:10:47 +01:00
parent c03d4d9b33
commit c8715941e6
9 changed files with 267 additions and 22 deletions

View File

@ -11,6 +11,9 @@
#include "node.h"
#include <stdlib.h>
/* tdestroy is a GNU specific function */
#define __USE_GNU
#include <search.h>
static
@ -100,3 +103,12 @@ int iso_file_src_create(Ecma119Image *img, IsoFile *file, IsoFileSrc **src)
return ISO_SUCCESS;
}
void free_node(void *nodep)
{
/* nothing to do */
}
void iso_file_src_free(Ecma119Image *img)
{
tdestroy(img->file_srcs, free_node);
}