Proper inheritance, etc

This commit is contained in:
Jaime Thomas
2008-05-15 00:14:33 +00:00
parent 8485d87d21
commit 2bb97ae4f9
11 changed files with 302 additions and 138 deletions

View File

@ -6,20 +6,24 @@ ecdb_project_new(void)
Ecdb_Project *proj;
proj = calloc(1, sizeof(Ecdb_Project));
proj->files = ecore_list_new();
ecore_list_append(em->projects, proj);
/* Create some sane defaults */
proj->burn_mode = BURN_MODE1;
proj->fifo_chunksize = 2048;
proj->fifo_chunks = 2048;
proj->underrun_proof = TRUE;
proj->opc = TRUE;
proj->multi = TRUE;
if (!proj)
return NULL;
if (!ecdb_project_init(proj))
{
FREE(proj);
return NULL;
}
return proj;
}
int
ecdb_project_init(Ecdb_Project *proj)
{
ecore_list_append(em->projects, proj);
return TRUE;
}
int
ecdb_shutdown(void *data, int type, void *event)
{