job.c revision 6091827530d6dd43479d6709fb6e9f745c11e900
/*-*- Mode: C; c-basic-offset: 8 -*-*/
#include <assert.h>
#include "macro.h"
#include "job.h"
Job *j;
assert(m);
return NULL;
j->manager = m;
j->id = m->current_job_id++;
/* We don't link it here, that's what job_link() is for */
return j;
}
int r;
assert(j);
return r;
j->linked = true;
return 0;
}
assert(j);
/* Detach from next 'bigger' objects */
if (j->linked) {
}
/* Free data and next 'smaller' objects */
free(j);
}