notify filter

This commit is contained in:
Olof Hagsand 2016-05-22 17:37:28 +02:00
parent c3157690b9
commit eaaf1b83e8
3 changed files with 19 additions and 10 deletions

View file

@ -65,12 +65,13 @@
*/
static struct client_subscription *
client_subscription_add(struct client_entry *ce,
char *stream,
enum format_enum format,
char *filter)
char *stream,
enum format_enum format,
char *filter)
{
struct client_subscription *su = NULL;
clicon_debug(1, "%s stream:%s filter:%s", __FUNCTION__, stream, filter);
if ((su = malloc(sizeof(*su))) == NULL){
clicon_err(OE_PLUGIN, errno, "malloc");
goto done;

View file

@ -872,7 +872,7 @@ cli_notify(clicon_handle h,
/*! Register log notification stream
* @param[in] h Clicon handle
* @param[in] stream Event stream. CLICON is predefined, others are application-defined
* @param[in] filter Filter. For xml notification ie xpath: /[name=kalle]
* @param[in] filter Filter. For xml notification ie xpath: .[name=kalle]
* @param[in] status 0 for stop, 1 to start
* @param[in] fn Callback function called when notification occurs
* @param[in] arg Argumnent to function