diff --git a/src/server/slave.c b/src/server/slave.c --- a/src/server/slave.c +++ b/src/server/slave.c @@ -120,7 +120,6 @@ int main(int argc, char *argv[]) char *pathtoOutput; /* Full path to the output (rendered) file */ char *pathtoJobfile; /* Full path to the job's main file */ - char *pathtoXml; /* Full path to the job's xml file */ char *outputExt; /* Output Extension (e.g., JPG) */ int haveWork = 0; @@ -141,34 +140,17 @@ int main(int argc, char *argv[]) /* @TODO: Add remotio hooks */ // jobnum = remoteio_read(jobnum); /* Set jobnum from remoteio (we could use info from struct, but we need this info to download the xmlfile */ // framenum = remoteio_read(jobnum); /* Set framenum from remoteio */ + // outputExt = remotio)read(outputExt); /* Set output extension from remotio */ fprintf(stderr, "Preparing to render frame %d in job %d\n", framenum, jobnum); - prepareJobPaths(jobnum, datadir, &urltoTar, &pathtoTar, &pathtoJobfile, &urltoOutput, &pathtoXml); + prepareJobPaths(jobnum, datadir, &urltoTar, &pathtoTar, &pathtoJobfile, &urltoOutput); if(downloadTar(urltoTar, pathtoTar)) return 1; unpackJob(pathtoTar, jobnum); - /* Parses a job's XML file, puts data in the myjob struct */ - if(distrenjob_unserialize(&myjob, pathtoXml) == 0) - { - fprintf(stderr, "Well, the XML craziness may have worked. Maybe. \n"); - free(pathtoXml); - - /* Frees things up if it was successful. distrenjob_unserialize() really (usually) only fails if malloc'ing inside it fails */ - distrenjob_free(&myjob); - } - else - { - fprintf(stderr, "XML job data parsing has failed. Please contact a developer, or try again.\n"); - return 1; - } - - /* Variable-fillers which require XML */ - outputExt = myjob->output_format; - /* Prepares the path to the jobfile */ _distren_asprintf(&pathtoOutput, "%s/job%d/output/job%d-frame%d.%s", datadir, jobnum, jobnum, framenum, outputExt ); free(outputExt);