From: Jan Pospíšil Date: Tue, 26 Oct 2004 16:56:30 +0000 (+0000) Subject: work in progress on unit tests for parse event X-Git-Tag: gridsite-core_R_1_0_4~43 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=360e6358d5465332e7783ae420eda35976fdd558;p=jra1mw.git work in progress on unit tests for parse event --- diff --git a/org.glite.lb.client-interface/interface/context.h b/org.glite.lb.client-interface/interface/context.h index bbca14f..8fb448b 100644 --- a/org.glite.lb.client-interface/interface/context.h +++ b/org.glite.lb.client-interface/interface/context.h @@ -130,7 +130,8 @@ typedef enum _edg_wll_ErrorCode { EDG_WLL_ERROR_PARSE_MSG_INCOMPLETE, /**< Incomplete message (missing fields) */ EDG_WLL_ERROR_PARSE_KEY_DUPLICITY, /**< Duplicate entry in message */ EDG_WLL_ERROR_PARSE_KEY_MISUSE, /**< Entry not allowed for this message type */ - EDG_WLL_ERROR_PARSE_OK_WITH_EXTRA_FIELDS, /**< Additional, not understood fields found in message. + EDG_WLL_ERROR_PARSE_OK_WITH_EXTRA_FIELDS, /**< Additional, not understood fields found in message */ + EDG_WLL_ERROR_COMPARE_EVENTS, /**< Two compared events differ. The rest is OK therefore this is not a true error. */ EDG_WLL_ERROR_XML_PARSE, /**< Error in parsing XML protocol. */ EDG_WLL_ERROR_SERVER_RESPONSE, /**< Generic failure on server. See syslog on the server machine for details. */ diff --git a/org.glite.lb.common/interface/events_parse.h b/org.glite.lb.common/interface/events_parse.h index d4ed8d7..155d7ac 100644 --- a/org.glite.lb.common/interface/events_parse.h +++ b/org.glite.lb.common/interface/events_parse.h @@ -46,6 +46,20 @@ extern edg_wll_ErrorCode edg_wll_CheckEvent( ); /** + * Compare two event structures + * Auxiliary function, compares all fields of two event structure + * \param context IN: context to work with + * \param e1 IN: first event to compare + * \param e2 IN: second event to compare + */ +extern edg_wll_ErrorCode edg_wll_CompareEvents( + edg_wll_Context context, + const edg_wll_Event *e1, + const edg_wll_Event *e2 +); + + +/** * Parse "only" jobId from ULM message * \param logline IN: ULM string to parse * \return jobId string