From 0af3b3b2d1e2e8854f311f0675321f76a09e12f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Wed, 29 Aug 2012 08:14:28 +0000 Subject: [PATCH] - New structure to describe inter-job relationship --- org.glite.lb.common/interface/jobstat.h.T | 21 +++++++++++++++++++++ org.glite.lb.common/src/status.c.T | 1 + 2 files changed, 22 insertions(+) diff --git a/org.glite.lb.common/interface/jobstat.h.T b/org.glite.lb.common/interface/jobstat.h.T index eb531dd..601c853 100644 --- a/org.glite.lb.common/interface/jobstat.h.T +++ b/org.glite.lb.common/interface/jobstat.h.T @@ -177,6 +177,27 @@ typedef struct _edg_wll_JobStat { #define EDG_WLL_NOTIF_VOLATILE 512 /**< (not used yet) send the notifications directly, without reliability and persistency */ /* starting from bit 10 private flags begins - do not add 1024 and more! */ +/** + * Type (status) of an inter-job relationship +**/ +typedef enum _edg_wll_JobConnectionType { + EDG_WLL_JOBCONNECTION_UNDEFINED, + EDG_WLL_JOBCONNECTION_ACTIVE, + EDG_WLL_JOBCONNECTION_INACTIVE, + EDG_WLL_JOBCONNECTION_CANCELLED +} edg_wll_JobConnectionType; + +extern char *edg_wll_JobConnectionTypeNames[]; + +/** + * Structured type for expressing inter-job relationships +**/ +typedef struct _edg_wll_RelationshipRecord { + glite_jobid_t jobid; /* JobID of the related job */ + enum edg_wll_StatJobtype jobtype; /* Type of the related job */ + edg_wll_JobConnectionType reltype; /* Type (status) of the relationship */ +} edg_wll_RelationshipRecord; + /** diff --git a/org.glite.lb.common/src/status.c.T b/org.glite.lb.common/src/status.c.T index abc51e1..8717b14 100644 --- a/org.glite.lb.common/src/status.c.T +++ b/org.glite.lb.common/src/status.c.T @@ -336,4 +336,5 @@ char *edg_wll_JDLField(edg_wll_JobStat *stat, const char *field_name) return NULL; } +char *edg_wll_JobConnectionTypeNames[] = { NULL, "Active", "Inactive", "Cancelled" }; -- 1.8.2.3