From eb270452ea651165786389f2b0ade3a9ea66fd49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Mon, 11 Jun 2012 13:28:53 +0000 Subject: [PATCH] Support for tag lists in events parsing - still causes error in unit test. Pursuing... --- org.glite.lb.common/interface/events_parse.h | 3 +++ org.glite.lb.common/test/parse.cpp.T | 2 ++ 2 files changed, 5 insertions(+) diff --git a/org.glite.lb.common/interface/events_parse.h b/org.glite.lb.common/interface/events_parse.h index b8b7139..8d968c5 100644 --- a/org.glite.lb.common/interface/events_parse.h +++ b/org.glite.lb.common/interface/events_parse.h @@ -110,6 +110,9 @@ extern edg_wll_LogLine edg_wll_UnparseNotifEvent( edg_wll_Event * event ); +extern int edg_wll_TagListParse( + const char *src, + edg_wll_TagValue **list); #ifdef __cplusplus } diff --git a/org.glite.lb.common/test/parse.cpp.T b/org.glite.lb.common/test/parse.cpp.T index 407f3cc..a011f7f 100644 --- a/org.glite.lb.common/test/parse.cpp.T +++ b/org.glite.lb.common/test/parse.cpp.T @@ -123,6 +123,8 @@ void EventParseTest::$l() $value = "edg_wll_NotifIdParse(\"https://some.host:1234/NOTIF:x67qr549qc\",&e1->$l.$fn);"; } elsif ($f->{type} eq "timeval") { $value = "e1->$l.$fn.tv_sec = 326890800; e1->$l.$fn.tv_usec = 1;"; + } elsif ($f->{type} eq "taglist") { + $value = "edg_wll_TagListParse(\"key=value\", &e1->$l.$fn);"; } else { gen "% FIXME: unknown type $f->{type} for $fn \n"; } -- 1.8.2.3