stream debug and test
This commit is contained in:
parent
fa9b9c7e2e
commit
e0e2e355d7
2 changed files with 12 additions and 10 deletions
|
|
@ -472,13 +472,14 @@ stream_notify_xml(clicon_handle h,
|
|||
goto done;
|
||||
ss = ss1;
|
||||
}
|
||||
else /* xpath match */
|
||||
else{ /* xpath match */
|
||||
if (ss->ss_xpath == NULL ||
|
||||
strlen(ss->ss_xpath)==0 ||
|
||||
xpath_first(xevent, "%s", ss->ss_xpath) != NULL)
|
||||
if ((*ss->ss_fn)(h, 0, xevent, ss->ss_arg) < 0)
|
||||
goto done;
|
||||
ss = NEXTQ(struct stream_subscription *, ss);
|
||||
ss = NEXTQ(struct stream_subscription *, ss);
|
||||
}
|
||||
} while (ss && ss != es->es_subscription);
|
||||
retval = 0;
|
||||
done:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue