2006-04-07 14:18:11 +00:00
|
|
|
/* Definitions common for both the server and client side */
|
2007-01-25 09:11:55 +00:00
|
|
|
#ifndef __DC_API_LOCAL_COMMON_H
|
|
|
|
#define __DC_API_LOCAL_COMMON_H
|
2006-04-07 14:18:11 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Prefix of subresult file labels */
|
|
|
|
#define SUBRESULT_PFX "dc_subresult_"
|
|
|
|
|
2006-04-11 14:17:44 +00:00
|
|
|
/* Logical names of the standard output file */
|
|
|
|
#define STDOUT_LABEL "dc_stdout"
|
|
|
|
|
|
|
|
/* Logical names of the standard error file */
|
|
|
|
#define STDERR_LABEL "dc_stderr"
|
|
|
|
|
2006-04-07 14:18:11 +00:00
|
|
|
/* Logical names of the checkpoint file */
|
2006-04-11 14:17:44 +00:00
|
|
|
#define CKPT_LABEL "dc_checkpoint"
|
2006-04-07 14:18:11 +00:00
|
|
|
|
|
|
|
/* Name of the client-side config. file */
|
|
|
|
#define CLIENTCONF_LABEL "dc_client.conf"
|
|
|
|
|
|
|
|
/* Maximum allowed message length */
|
|
|
|
#define MAX_MESSAGE_SIZE 16384
|
|
|
|
|
2006-04-11 14:17:44 +00:00
|
|
|
/* Maximum allowed message length */
|
|
|
|
#define MAX_SUBRESULTS 100
|
|
|
|
|
2006-04-07 14:18:11 +00:00
|
|
|
/* Prefix for internal messages between the client-side and master-side DC-API */
|
|
|
|
#define DCAPI_MSG_PFX "__dcapi__"
|
|
|
|
|
|
|
|
/* Must match the definition of WorkdirFile */
|
|
|
|
static const char *const workdir_prefixes[] =
|
|
|
|
{
|
|
|
|
"in_", "out_", "checkpoint", "dc_"
|
|
|
|
};
|
|
|
|
|
2007-01-25 09:44:32 +00:00
|
|
|
#define _DCAPI_MSG_MESSAGE "message"
|
|
|
|
#define _DCAPI_MSG_LOGICAL "logical_name"
|
|
|
|
#define _DCAPI_MSG_COMMAND "command"
|
|
|
|
#define _DCAPI_MSG_ACK "acknowledge"
|
|
|
|
|
|
|
|
#define _DCAPI_CMD_SUSPEND "suspend"
|
|
|
|
#define _DCAPI_ACK_SUSPEND "suspending"
|
|
|
|
|
|
|
|
#define _DCAPI_CMD_RESUME "resume"
|
|
|
|
|
|
|
|
#define _DCAPI_SIG_SERIALIZED "serialized"
|
|
|
|
|
2006-04-07 14:18:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2007-01-25 09:11:55 +00:00
|
|
|
#endif /* __DC_API_LOCAL_COMMON_H */
|