notify filter
This commit is contained in:
parent
c3157690b9
commit
eaaf1b83e8
3 changed files with 19 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue