From 7add3a9b6512624ab460cc178c3db6ed882569f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Fri, 26 Aug 2005 14:54:41 +0000 Subject: [PATCH] declarations of "well known" JP attributes --- org.glite.jp.common/Makefile | 2 +- org.glite.jp.common/interface/attr.h | 3 --- org.glite.jp.common/interface/known_attr.h | 21 +++++++++++++++++++++ 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 org.glite.jp.common/interface/known_attr.h diff --git a/org.glite.jp.common/Makefile b/org.glite.jp.common/Makefile index 1562cb6..330186d 100644 --- a/org.glite.jp.common/Makefile +++ b/org.glite.jp.common/Makefile @@ -37,7 +37,7 @@ LINKXX:=libtool --mode=link ${CXX} ${LDFLAGS} INSTALL:=libtool --mode=install install COMPILE:=libtool --mode=compile ${CC} ${CFLAGS} -HDRS:=types.h context.h strmd5.h attr.h +HDRS:=types.h context.h strmd5.h attr.h known_attr.h SRCS:=context.c strmd5.c attr.c OBJS:=${SRCS:.c=.lo} diff --git a/org.glite.jp.common/interface/attr.h b/org.glite.jp.common/interface/attr.h index 2e371d8..02fda03 100644 --- a/org.glite.jp.common/interface/attr.h +++ b/org.glite.jp.common/interface/attr.h @@ -1,9 +1,6 @@ #ifndef __GLITE_JP_ATTR #define __GLITE_JP_ATTR -#define GLITE_JP_SYSTEM_NS "http://egee.cesnet.cz/en/WSDL/jp-system" -#define GLITE_JP_ATTR_OWNER GLITE_JP_SYSTEM_NS ":owner" - void glite_jp_attrval_free(glite_jp_attrval_t *,int); void glite_jp_attrval_copy(glite_jp_attrval_t *,const glite_jp_attrval_t *); diff --git a/org.glite.jp.common/interface/known_attr.h b/org.glite.jp.common/interface/known_attr.h new file mode 100644 index 0000000..7116615 --- /dev/null +++ b/org.glite.jp.common/interface/known_attr.h @@ -0,0 +1,21 @@ +#ifndef __GLITE_JP_KNOWN_ATTR +#define __GLITE_JP_KNOWN_ATTR + +/** Namespace of JP system attributes */ +#define GLITE_JP_SYSTEM_NS "http://egee.cesnet.cz/en/WSDL/jp-system" + +/** Job owner, as specified with RegisterJob JPPS operation */ +#define GLITE_JP_ATTR_OWNER GLITE_JP_SYSTEM_NS ":owner" + +/** Namespace for attributes derived from LB system data */ +#define GLITE_JP_LB_NS "http://egee.cesnet.cz/en/WSDL/jp-lb" + +#define GLITE_JP_LB_SUBMITTED GLITE_JP_LB_NS ":submitted" /**< submit time */ +#define GLITE_JP_LB_TERMINATED GLITE_JP_LB_NS ":terminated" /**< termination time (done, abort, cancel) */ +#define GLITE_JP_LB_FINALSTATE GLITE_JP_LB_NS ":finalState" /**< final job status */ +/* TODO: others */ + +/** Namespace for LB user tags, schemaless, all values are strings */ +#define GLITE_JP_LBTAG_NS "http://egee.cesnet.cz/en/WSDL/jp-lbtag" + +#endif -- 1.8.2.3