Changeset - dbcd59c49d54
[Not reviewed]
default
0 1 0
LordOfWar - 16 years ago 2009-10-09 17:15:02

updated start_data to use new functions
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -75,6 +75,7 @@ void distrenjob_enqueue(struct distrenjo
 
void mortition(struct distrenjob *head, struct distrenjob *job);
 
int makeJobDataXML(struct distrenjob *job);
 
int updateJobListXML(struct distrenjob *head);
 
int createQueueFromXML(struct distrenjob *head);
 
int reCreateQueueFromXML(struct distrenjob *head, xmlDocPtr doc, xmlNodePtr current);
 

	
 

	
 
@@ -135,7 +136,7 @@ void remotio_send_to_client()
 
}
 

	
 
/** Fill variables after crash / shutdown from XML dumps */
 
int start_data()
 
int start_data(struct distrenjob *head)
 
{
 
  general_info.hibernate = 0;
 
  struct stat buffer;
 
@@ -144,6 +145,7 @@ int start_data()
 
    // @TODO: retrieve total_finished_jobs and total_finished_frames from xml file
 

	
 
    fprintf(stderr,"Parsing XML files and restoring previous state...\n");
 
    createQueueFromXML(head);
 
    return 1;
 
  }
 
  else{
 
@@ -768,7 +770,7 @@ int main(int argc, char *argv[])
 
  cont = 1;
 
  memset(&head, '\0', sizeof(struct distrenjob));
 

	
 
  start_data(); // Starts fresh or loads data from xml dump. Should we grab the return?
 
  start_data(&head); // Starts fresh or loads data from xml dump. Should we grab the return?
 

	
 
  distrend_do_config(argc, argv, &config);
 

	
0 comments (0 inline, 0 general)