- job_t is now defined in its own files job.h and job.c

This commit is contained in:
Jan Hutter
2005-11-07 07:33:31 +00:00
parent b6e9bc4925
commit 0e39bf8a3b
4 changed files with 142 additions and 84 deletions
-24
View File
@@ -28,30 +28,6 @@
#include "job_queue.h"
/**
* @brief implements function destroy of job_t
*/
static status_t job_destroy(job_t *job)
{
pfree(job);
return SUCCESS;
}
/*
* Creates a job (documented in header-file)
*/
job_t *job_create(job_type_t type, void *assigned_data)
{
job_t *this = alloc_thing(job_t, "job_t");
this->destroy = job_destroy;
this->type = type;
this->assigned_data = assigned_data;
return this;
}
/**
* @brief Private Variables and Functions of job_queue class
*