def _addWatch(self, path, mask, autoAdd, callbacks):
        wd = self._inotify.add(self._fd, path.path, mask)

        iwp = _Watch(path, mask, autoAdd, callbacks)

        self._watchpoints[wd] = iwp
        self._watchpaths[path] = wd

        return wd
Private helper that abstracts the use of ctypes.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/inotify.py/INotify._addWatch