diff --git a/src/client/distren.c b/src/client/distren.c --- a/src/client/distren.c +++ b/src/client/distren.c @@ -26,14 +26,23 @@ int main(int argc, char *argv[]) genericfunc(); execlisten(); + struc job; + // job = // gets job structure from server + + /*-- job structure-- + * int file_name + * int frame_to_render + * + */ + int frame_to_render; frame_to_render = 10; // temporary, the number 10 will be replaced with a function call - char name[25]; // declares a variable to hold the file name - name = 'file_name'; // file_name will be replaced with a function call + char file_name[25]; // declares a variable to hold the file name + // file_name = job.file_name // retrieves file name from the job structure char string[100]; - sprintf(string, "blender.exe -b %s.blend -o //tmp/frame -f %d -F JPEG -x 1", name, frame_to_render); + sprintf(string, "blender.exe -b (filename).blend -o //tmp/frame -f %d -F JPEG -x 1", name, frame_to_render); system(string);