Lines Matching refs:event
12 const struct inotify_event *event, in inotify_handler() argument
19 if (event->mask & IN_Q_OVERFLOW) in inotify_handler()
21 else if (event->mask & IN_CREATE) in inotify_handler()
22 printf("inotify-handler <%s>: create on %s\n", desc, event->name); in inotify_handler()
23 else if (event->mask & IN_DELETE) in inotify_handler()
24 printf("inotify-handler <%s>: delete on %s\n", desc, event->name); in inotify_handler()
25 else if (event->mask & IN_MOVED_TO) in inotify_handler()
26 printf("inotify-handler <%s>: moved-to on %s\n", desc, event->name); in inotify_handler()
29 if ((event->mask & (IN_CREATE|IN_MOVED_TO)) && in inotify_handler()
30 strcmp(event->name, "exit") == 0) in inotify_handler()
37 _cleanup_(sd_event_unrefp) sd_event *event = NULL; in main()
45 sd_event_default(&event); in main()
47 sd_event_add_inotify(event, &source1, path1, in main()
51 sd_event_add_inotify(event, &source2, path2, in main()
55 sd_event_loop(event); in main()