diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -34,11 +34,19 @@ #define max 100 // maximum number of stored jobs in memory, per job type (lux/blend). Eventually we can dump this data to disk, or atleast the remainder not in memory... -int jobnum = 0; - +int jobnum = 0; // The next job number to create in the queue int hcfjob; // Highest consecutively finished job +int highest_jobnum; // The job number of the most recently created job, this is used when creating new jobs -int highest_jobnum; // The job number of the most recently created job, this is used when creating new jobs + + +struct distrend_config +{ + cfg_t *mycfg; + struct options_common *options; + struct distrend_listen **listens; /*< Null terminated array of structs */ +} + // Structures for storing job information struct { @@ -74,7 +82,7 @@ struct { int main(int argc, char *argv[]) { -// I'm assuming this is a non-working framework :) +// Begin non-working framework? int distrend_do_config(int argc, char *argv[], struct distrend_config *config) { cfg_opt_t myopts = @@ -101,7 +109,7 @@ int main(int argc, char *argv[]) return 0; } - +// End non-working framework? @@ -126,15 +134,8 @@ int main(int argc, char *argv[]) return 0; } +// End main. Please take this into account when putting in code!!! Use the bracket highlighter!!! -struct distrend_config -{ - cfg_t *mycfg; - struct options_common *options; - - struct distrend_listen **listens; /*< Null terminated array of structs */ - -} @@ -159,6 +160,8 @@ struct distrend_config */ + + /* -- Coding using OLD FRAMESET STRUCTURE... temporarily saving it!! -- :: Normaldotcom glances at lordofwar with a concerned look... // This function creates frame array based on the total number of frames to be rendered, which will then be parsed by function frame_farmer. void frame_num_struct_builder(int sframe, int eframe) {