Add an interface for polling for inotify events.