work in progress on unit tests for parse event
authorJan Pospíšil <honik@ntc.zcu.cz>
Tue, 26 Oct 2004 16:56:30 +0000 (16:56 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Tue, 26 Oct 2004 16:56:30 +0000 (16:56 +0000)
org.glite.lb.client-interface/interface/context.h
org.glite.lb.common/interface/events_parse.h

index bbca14f..8fb448b 100644 (file)
@@ -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. */
index d4ed8d7..155d7ac 100644 (file)
@@ -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