# HG changeset patch # User ethanzonca # Date 2009-07-27 17:43:04 # Node ID 0deae41fe011f3810199fd7eb174fd87725cf112 # Parent b4fe3a4fca78e05c069726c090ca9ad79f43f006 Updated funtion proto, uncommented the conf replacer's decl. diff --git a/src/server/slavefuncs.c b/src/server/slavefuncs.c --- a/src/server/slavefuncs.c +++ b/src/server/slavefuncs.c @@ -108,10 +108,11 @@ void loginuser(char *username){ execio_close(testrem); } -/* Replaces username and key in the slave's conf file, currently pseudo, add to .h!!! */ -/* +/* Replaces username and key in the slave's conf file, currently pseudo */ + void conf_replace(char *username, char *key){ // Doesn't delete anything! :D +/* mktemp(); // Gets a new file to put data into fopen('w'); // Open the file we created in write mode fopen('r'); // Open the conf file in read-only mode @@ -119,13 +120,14 @@ void conf_replace(char *username, char * writ(); // writing out to the newly created file fsync(); // fsync the file we wrote data to rename(); // rename the old file to the new file +*/ } -*/ + /* 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! + It seems that the client will need to know the job number. fixme. */ void exec_blender(struct blendjob* blendjob, char *input, char *output, int frame) diff --git a/src/server/slavefuncs.h b/src/server/slavefuncs.h --- a/src/server/slavefuncs.h +++ b/src/server/slavefuncs.h @@ -24,6 +24,7 @@ void ssh_keygen(); void registeruser(char *username, char *email); void loginuser(char *username); +void conf_replace(char *username, char *key); void exec_blender(struct blendjob* blendjob, char *input, char *output, int frame);