Files
@ 8b67a70070ef
Branch filter:
Location: DistRen/src/client/libdistren.c - annotation
8b67a70070ef
1.9 KiB
text/plain
Fixed a syntax error, changing curvy brackets to parenthesis
added a frameset structure
adjusted the job_builder and frame_finder functions to use the new structure
prepared to start a function called status_report_generator, this function will scan all the jobs and figure out how done they are
preparing to:
add code to the frame_finder function to scan all the jobs and then run the job of highest priority. Then I will add code to the status_report_generate to change the priority of the job to something the frame_finder won't look it if the job is completed.
added a frameset structure
adjusted the job_builder and frame_finder functions to use the new structure
prepared to start a function called status_report_generator, this function will scan all the jobs and figure out how done they are
preparing to:
add code to the frame_finder function to scan all the jobs and then run the job of highest priority. Then I will add code to the status_report_generate to change the priority of the job to something the frame_finder won't look it if the job is completed.
9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 93996706d92a b647e12afd51 9d601d5c27c7 9d601d5c27c7 b647e12afd51 9d601d5c27c7 9d601d5c27c7 51bd2f4a1651 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 b647e12afd51 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae 52937ad805ae b647e12afd51 b647e12afd51 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 93996706d92a 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 b6d81cafcc9d 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 c21ed954efe5 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 b647e12afd51 9d601d5c27c7 9d601d5c27c7 9d601d5c27c7 b647e12afd51 b647e12afd51 9d601d5c27c7 | /*
Copyright 2008 Nathan Phillip Brink, Ethan Zonca, Matt Orlando
This file is a part of DistRen.
DistRen is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DistRen is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with DistRen. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Implementation of distren_* functions from distren.h excluding distren_job_* functions.
*/
#include <libdistren.h>
#include <malloc.h>
#include <stdio.h>
/**
@todo needs to read configuration in
*/
int distren_init_mf(distren_t *handle, distren_malloc_t mymalloc, distren_free_t myfree)
{
if(!handle
|| !mymalloc
|| !myfree)
{
fprintf(stderr, "distren_init_mf passed NULL pointers\n");
return 1;
}
*handle = (*mymalloc)(sizeof(struct distren));
if(!*handle)
return 1;
(*handle)->malloc = mymalloc;
(*handle)->free = myfree;
/* now the environment is ready for general use */
if(_distren_getoptions(*handle))
{
fprintf(stderr, "error getting configuration\n");
distren_free(*handle);
return 1;
}
/**
@todo open a connection to the server now and return error if we can't
connect.
*/
return 0;
}
int distren_init(distren_t *handle)
{
return distren_init_mf(handle, &malloc, &free);
}
/**
@todo Stub
*/
int distren_submit_file(distren_t handle, distren_job_t *job, const char *filename)
{
return 1;
}
/**
*/
int distren_free(distren_t handle)
{
_free(handle, handle);
return 0;
}
|