Lines Matching refs:event
690 struct inotify_event * event = (struct inotify_event *) &buffer[i];
691 if( event->len )
693 if( *(event->name) == '.' )
695 i += EVENT_SIZE + event->len;
698 esc_name = modifyString(strdup(event->name), "&", "&", 0);
699 sprintf(path_buf, "%s/%s", get_path_from_wd(event->wd), event->name);
700 if ( (event->mask & IN_CREATE && event->mask & IN_ISDIR) ||
701 (event->mask & IN_MOVED_TO && event->mask & IN_ISDIR) )
703 DPRINTF(E_DEBUG, L_INOTIFY, "The directory %s was %s.\n", path_buf, (event->mask & IN_MOVED_TO ? "moved here" : "created"));
706 else if ( event->mask & IN_CLOSE_WRITE || event->mask & IN_MOVED_TO )
710 DPRINTF(E_DEBUG, L_INOTIFY, "The file %s was %s.\n", path_buf, (event->mask & IN_MOVED_TO ? "moved here" : "changed"));
714 else if ( event->mask & IN_DELETE || event->mask & IN_MOVED_FROM )
716 if ( event->mask & IN_ISDIR )
718 DPRINTF(E_DEBUG, L_INOTIFY, "The directory %s was %s.\n", path_buf, (event->mask & IN_MOVED_FROM ? "moved away" : "deleted"));
723 DPRINTF(E_DEBUG, L_INOTIFY, "The file %s was %s.\n", path_buf, (event->mask & IN_MOVED_FROM ? "moved away" : "deleted"));
729 i += EVENT_SIZE + event->len;