# HG changeset patch # User NEO # Date 2009-07-12 21:16:50 # Node ID b0463de161bdae023fe75e88860370043b0a206a # Parent 49a8e39f40dbca5d55cbaf826a505793f7ca388c added: void start_data() function - this function will retrieve saved data from a series of xml file in case the power goes out. - or it will initialize values at zero if there are no backup files existing. diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -112,6 +112,17 @@ struct frameset { /* ********************** Functions ************************* */ +void start_data(){ + + if(1 == 0){ + // retrieve total_finished_jobs and total_finished_frames from xml file + } + else{ + general_info.total_finished_jobs = 0; + general_info.total_frames_rendered = 0; + } +} + // **** Finish-Setter: Sets a frame to the "completed" status. void finish_frame(int jobnum, int frame){ blendjob[jobnum].frameset[frame].frame_status = 2;