legacy/experimental/ecdb/trunk/src/ecdb_misc.c
2008-08-06 02:21:20 +00:00

73 lines
1005 B
C

#include "ecdb.h"
Ecdb_Project *
ecdb_project_new(void)
{
Ecdb_Project *proj;
proj = calloc(1, sizeof(Ecdb_Project));
if (!proj)
return NULL;
if (!ecdb_project_init(proj))
{
FREE(proj);
return NULL;
}
return proj;
}
int
ecdb_project_init(Ecdb_Project *proj)
{
return TRUE;
}
void
ecdb_project_destroy(Ecdb_Project *proj)
{
free(proj);
}
void
ecdb_project_type_set(Ecdb_Project *proj, unsigned int t)
{
proj->type = t;
}
int
ecdb_shutdown(void *data, int type, void *event)
{
if (em->drives)
ecore_list_destroy(em->drives);
free(em);
if (!ecore_file_recursive_rm("/tmp/ecdb"))
printf("Removal of temporary directory failed!\n");
ewl_main_quit();
return FALSE;
}
int
ecdb_burn_init(void)
{
if (!burn_initialize())
return 0;
burn_msgs_set_severities("NEVER", "SORRY", "ecdb: ");
burn_set_signal_handling("ecdb: ", NULL, 0);
return 1;
}
int
ecdb_image_init(void)
{
if (!iso_init())
return 0;
iso_set_msgs_severities("NEVER", "SORRY", "ecdb: ");
return 1;
}