Lines Matching refs:notify

525 	struct target_notify *notify;
529 if ((notify = target_get_notify(&val->var, sub)) == NULL)
534 if ((notify = target_get_next_notify(&val->var, sub)) == NULL)
536 target_append_index(&val->var, sub, notify->name);
540 if ((notify = target_get_notify(&val->var, sub)) == NULL &&
545 if (notify != NULL) {
547 notify->type == StorageType_readOnly)
555 ctx->scratch->int1 = strlen(notify->taglist) + 1;
559 strlcpy(ctx->scratch->ptr1, notify->taglist,
561 memcpy(notify->taglist, val->v.octetstring.octets,
563 notify->taglist[val->v.octetstring.len] = '\0';
571 if (notify != NULL) {
575 ctx->scratch->int1 = notify->status;
576 notify->status = val->v.integer;
582 if ((notify = target_new_notify(nname)) == NULL)
584 notify->status = RowStatus_destroy;
586 notify->type = StorageType_volatile;
588 notify->type = StorageType_readOnly;
599 notify = target_get_notify(&val->var, sub);
600 if (notify == NULL)
603 return (target_delete_notify(notify));
605 notify->status = RowStatus_active;
613 if ((notify = target_get_notify(&val->var, sub)) == NULL)
618 strlcpy(notify->taglist, ctx->scratch->ptr1,
624 return (target_delete_notify(notify));
638 return (string_get(val, notify->taglist, -1));
643 val->v.integer = notify->type;
646 val->v.integer = notify->status;
759 struct target_notify *notify;
764 for (notify = target_first_notify(); notify != NULL;
765 notify = target_next_notify(notify))
766 if (strcmp(nname, notify->name) == 0)
767 return (notify);
776 struct target_notify *notify;
784 for (notify = target_first_notify(); notify != NULL;
785 notify = target_next_notify(notify))
786 if (strcmp(nname, notify->name) == 0)
787 return (target_next_notify(notify));