2006-05-17 12:12:09 +00:00
|
|
|
/* Local variables: */
|
|
|
|
/* c-file-style: "linux" */
|
|
|
|
/* End: */
|
|
|
|
|
2006-05-09 11:06:29 +00:00
|
|
|
#ifndef __DC_API_CONDOR_DEFS_H_
|
|
|
|
#define __DC_API_CONDOR_DEFS_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-06-07 12:56:14 +00:00
|
|
|
#include <time.h>
|
|
|
|
#include <sys/time.h>
|
2006-05-09 11:06:29 +00:00
|
|
|
#include <uuid/uuid.h>
|
|
|
|
|
|
|
|
#include "dc.h"
|
|
|
|
#include "dc_internal.h"
|
|
|
|
|
2006-05-11 11:44:03 +00:00
|
|
|
extern char project_uuid_str[37];
|
|
|
|
|
2006-06-07 12:56:14 +00:00
|
|
|
struct _DC_condor_event
|
|
|
|
{
|
|
|
|
int event;
|
|
|
|
int cluster;
|
|
|
|
int proc;
|
|
|
|
int subproc;
|
2006-06-08 06:32:46 +00:00
|
|
|
time_t time;
|
2006-06-07 12:56:14 +00:00
|
|
|
};
|
|
|
|
|
2006-06-08 08:46:24 +00:00
|
|
|
struct _DC_wu_data
|
2006-05-11 11:44:03 +00:00
|
|
|
{
|
|
|
|
char *client_name;
|
2006-06-08 08:46:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _DC_Workunit
|
|
|
|
{
|
|
|
|
int magic;
|
|
|
|
int chk;
|
|
|
|
struct _DC_wu_data data;
|
2006-05-11 11:44:03 +00:00
|
|
|
char **argv;
|
|
|
|
int argc;
|
|
|
|
char *tag;
|
|
|
|
int subresults;
|
2006-05-09 11:06:29 +00:00
|
|
|
|
2006-05-11 11:44:03 +00:00
|
|
|
char *name;
|
|
|
|
uuid_t uuid;
|
|
|
|
char *uuid_str;
|
|
|
|
DC_WUState state;
|
2006-05-09 11:06:29 +00:00
|
|
|
|
2006-06-07 12:56:14 +00:00
|
|
|
/*char *condor_id;*/
|
|
|
|
GArray *condor_events;
|
2006-05-11 11:44:03 +00:00
|
|
|
char *workdir;
|
2006-05-09 11:06:29 +00:00
|
|
|
|
2006-05-11 11:44:03 +00:00
|
|
|
GList *input_files;
|
|
|
|
GList *output_files;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _DC_Result
|
|
|
|
{
|
|
|
|
DC_Workunit *wu;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
FILE_IN,
|
|
|
|
FILE_OUT,
|
|
|
|
FILE_CKPT,
|
|
|
|
FILE_DCAPI
|
|
|
|
} WorkdirFile;
|
2006-05-09 11:06:29 +00:00
|
|
|
|
2006-05-23 11:33:56 +00:00
|
|
|
/* DCAPI configuration keys */
|
|
|
|
#define CFG_SLEEPINTERVAL "SleepingInterval"
|
|
|
|
#define CFG_ARCHITECTURES "Architectures"
|
|
|
|
#define CFG_CLIENT_ARCH_NAME "Client_%s_%s" /* client_name, architecture */
|
|
|
|
/*#define CFG_WORKDIR "WorkingDirectory"*/
|
|
|
|
/*#define CFG_INSTANCEUUID "InstanceUUID"*/
|
2006-05-09 11:06:29 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* End of condor/condor_defs.h */
|