Proper inheritance, etc
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user