/* Local variables: */ /* c-file-style: "linux" */ /* End: */ #ifndef __DC_API_CONDOR_DEFS_H_ #define __DC_API_CONDOR_DEFS_H_ #ifdef __cplusplus extern "C" { #endif #include #include #include #include "glib.h" #include "dc.h" #include "dc_internal.h" extern char project_uuid_str[37]; struct _DC_condor_event { int event; int cluster; int proc; int subproc; time_t time; union { struct { gboolean normal; int exit_code; } exit_info; struct { char *reason; } abort_info; }; }; struct _DC_wu_data { char *client_name; // reference to the config file group char *tag; // Parameter from the app int argc; int subresults; /*uuid_t uuid;*/ char *uuid_str; char *name; // generated by Create char *workdir; }; struct _DC_Workunit { int magic; struct _DC_wu_data data; char **argv; DC_WUState state; /*char *condor_id;*/ GArray *condor_events; GList *input_files; GList *output_files; int chk; }; struct _DC_Result { DC_Workunit *wu; }; typedef enum { FILE_IN, FILE_OUT, FILE_CKPT, FILE_DCAPI } WorkdirFile; /* DCAPI configuration keys */ #define ACFG_ARCHITECTURES "Architectures" #define ACFG_CLIENT_ARCH_NAME "Client_%s_%s" /* client_name, architecture */ #define SCFG_SUBMIT_FILE "SubmitFile" #define SDEF_SUBMIT_FILE "_dcapi_condor_submit.txt" #define SCFG_EXECUTABLE "Executable" #define DC_LABEL_INTLOG "internal_log.txt" #ifdef __cplusplus } #endif #endif /* End of condor/condor_defs.h */