Lines Matching refs:notify
833 target_next_notify(struct target_notify *notify)
835 if (notify == NULL)
838 return (SLIST_NEXT(notify, tn));
845 struct target_notify *notify, *temp, *prev;
847 SLIST_FOREACH(notify, &target_notifylist, tn)
848 if (strcmp(nname, notify->name) == 0)
851 if ((notify = (struct target_notify *)malloc(sizeof(*notify))) == NULL)
854 memset(notify, 0, sizeof(*notify));
855 strlcpy(notify->name, nname, sizeof(notify->name));
859 SLIST_INSERT_HEAD(&target_notifylist, notify, tn);
860 return (notify);
870 SLIST_INSERT_AFTER(prev, notify, tn);
872 SLIST_INSERT_AFTER(temp, notify, tn);
874 syslog(LOG_ERR, "Notification target %s exists", notify->name);
875 free(notify);
879 return (notify);
883 target_delete_notify(struct target_notify *notify)
885 SLIST_REMOVE(&target_notifylist, notify, target_notify, tn);
886 free(notify);
896 struct target_notify *notify;
912 while ((notify = SLIST_FIRST(&target_notifylist)) != NULL) {
914 free(notify);