2008-04-01 21:30:41 +00:00
|
|
|
#include "ecdb.h"
|
|
|
|
|
|
|
|
Ecdb_Project *
|
|
|
|
ecdb_project_new(void)
|
|
|
|
{
|
|
|
|
Ecdb_Project *proj;
|
|
|
|
|
|
|
|
proj = calloc(1, sizeof(Ecdb_Project));
|
2008-05-15 00:14:33 +00:00
|
|
|
if (!proj)
|
|
|
|
return NULL;
|
|
|
|
if (!ecdb_project_init(proj))
|
|
|
|
{
|
|
|
|
FREE(proj);
|
|
|
|
return NULL;
|
|
|
|
}
|
2008-04-01 21:30:41 +00:00
|
|
|
|
|
|
|
return proj;
|
|
|
|
}
|
|
|
|
|
2008-05-15 00:14:33 +00:00
|
|
|
int
|
|
|
|
ecdb_project_init(Ecdb_Project *proj)
|
|
|
|
{
|
|
|
|
ecore_list_append(em->projects, proj);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2008-04-07 01:04:15 +00:00
|
|
|
int
|
|
|
|
ecdb_shutdown(void *data, int type, void *event)
|
2008-04-01 21:30:41 +00:00
|
|
|
{
|
|
|
|
if (em->projects)
|
|
|
|
ecore_list_destroy(em->projects);
|
|
|
|
if (em->drives)
|
|
|
|
ecore_list_destroy(em->drives);
|
|
|
|
free(em);
|
2008-04-07 01:04:15 +00:00
|
|
|
ecore_main_loop_quit();
|
|
|
|
return 0;
|
2008-04-01 21:30:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
ecdb_burn_init(void)
|
|
|
|
{
|
|
|
|
burn_initialize();
|
|
|
|
burn_msgs_set_severities("NEVER", "SORRY", "ecdb: ");
|
|
|
|
burn_set_signal_handling("ecdb: ", NULL, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
ecdb_image_init(void)
|
|
|
|
{
|
|
|
|
iso_init();
|
|
|
|
iso_set_msgs_severities("NEVER", "SORRY", "ecdb: ");
|
|
|
|
}
|
|
|
|
|