boinc/dcapi/local/local_common.c

63 lines
1.4 KiB
C
Raw Normal View History

/*
* local/local_common.c
*
* DC-API functions common for master and slave side
*
* (c) Daniel Drotos, 2006
*/
/* $Id$ */
/* $Date$ */
/* $Revision$ */
#include "local_common.h"
struct _DC_s_param _DC_params[cfg_nuof];
void
_DC_init_common(void)
{
int i;
for (i= 0; i < cfg_nuof; i++)
{
_DC_params[i].name= 0;
_DC_params[i].def= 0;
_DC_params[i].lvalue= 0;
_DC_params[i].gvalue= 0;
}
_DC_params[cfg_client_message_box].name= "ClientMessageBox";
_DC_params[cfg_client_message_box].def= "_dcapi_client_messages";
_DC_params[cfg_master_message_box].name= "MasterMessageBox";
_DC_params[cfg_master_message_box].def= "_dcapi_master_messages";
_DC_params[cfg_subresults_box].name= "SubresultBox";
_DC_params[cfg_subresults_box].def= "_dcapi_client_subresults";
_DC_params[cfg_management_box].name= "SystemMessageBox";
_DC_params[cfg_management_box].def= "_dcapi_system_messages";
_DC_params[cfg_executable].name= "Executable";
_DC_params[cfg_executable].def= 0/*NULL*/;
_DC_params[cfg_leave_files].name= "LeaveFiles";
_DC_params[cfg_leave_files].def= "0";
_DC_params[cfg_checkpoint_file].name= "CheckpointFile";
_DC_params[cfg_checkpoint_file].def= "_dcapi_checkpoint";
_DC_params[cfg_output_cache].name= "SavedOutputs";
_DC_params[cfg_output_cache].def= "_dcapi_saved_output";
}
/* End of local/local_common.c */
/* Local variables: */
/* c-file-style: "linux" */
/* End: */