Support for tag lists in events parsing
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 11 Jun 2012 13:28:53 +0000 (13:28 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 11 Jun 2012 13:28:53 +0000 (13:28 +0000)
- still causes error in unit test. Pursuing...

org.glite.lb.common/interface/events_parse.h
org.glite.lb.common/test/parse.cpp.T

index b8b7139..8d968c5 100644 (file)
@@ -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
 }
index 407f3cc..a011f7f 100644 (file)
@@ -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"; 
                                }