# HG changeset patch # User Binki # Date 2009-07-15 19:47:45 # Node ID dc84f24b8ebb4189f0e8748d073a5364fb6ee1ce # Parent 977179850e7e714b7b365c0b9666d3434cdbc6fd struct blendjob*-ized exec_blender diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -664,12 +664,15 @@ void loginuser(char *username){ // Executors -// It seems that the client will need to know the job number. Is finish_frame going to be on the client or the server? we gotta figure that out! -void exec_blender(char *input, char *output, int frame, int jobnum) { +/* + It seems that the client will need to know the job number. Is finish_frame going to be on the client or the server? we gotta figure that out! +*/ +void exec_blender(struct blendjob* blendjob, char *input, char *output, int frame) +{ char *frame_str; asprintf(frame,frame_str); // GNU/*nix compatible only, fix before releasing win32, although dll for windows for asprintf exists! int ret; char *cmd[] = { "blender", "-b", "-o", output, input, "-f", frame_str, (char *)0 }; ret = execv("/usr/bin/blender", cmd); - finish_frame(jobnum, frame); + finish_frame(blendjob, frame); }