From: Zdeněk Šustr Date: Mon, 11 Jun 2012 13:28:53 +0000 (+0000) Subject: Support for tag lists in events parsing X-Git-Tag: canl_merge_branch_1_0_head_take_3_dst~9 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=eb270452ea651165786389f2b0ade3a9ea66fd49;p=jra1mw.git Support for tag lists in events parsing - still causes error in unit test. Pursuing... --- 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"; }