/* We need to put the job into memory before we do anything. */
pQueue->jobs[ma_job_extract_slot(slot)]=*pJob;
pQueue->jobs[ma_job_extract_slot(slot)].toc.allocation=slot;/* This will overwrite the job code. */
pQueue->jobs[ma_job_extract_slot(slot)].toc.code=pJob->toc.code;/* The job code needs to be applied again because the line above overwrote it. */
pQueue->jobs[ma_job_extract_slot(slot)].toc.breakup.code=pJob->toc.breakup.code;/* The job code needs to be applied again because the line above overwrote it. */
pQueue->jobs[ma_job_extract_slot(slot)].next=MA_JOB_ID_NONE;/* Reset for safety. */
/* The job is stored in memory so now we need to add it to our linked list. We only ever add items to the end of the list. */