public FileSystemEvent(Loop loop, string path) : base(loop, UvHandleType.UV_FS_EVENT) { uv_fs_event = fs_event; int r = uv_fs_event_init(loop.Handle, handle, path, uv_fs_event, 0); Ensure.Success(r, loop); }
public FileSystemWatcher(Loop loop, string path, FileSystemEventFlags flags) : base(loop, HandleType.UV_FS_EVENT) { uv_fs_event = fs_event; int r = uv_fs_event_init(loop.NativeHandle, NativeHandle, path, uv_fs_event, (int)flags); Ensure.Success(r, loop); }
public void Start(string path, FileSystemEventFlags flags) { uv_fs_event = fs_event; int r = uv_fs_event_start(NativeHandle, uv_fs_event, path, (int)flags); Ensure.Success(r); }
public FileSystemWatcher(Loop loop) : base(loop, HandleType.UV_FS_EVENT) { uv_fs_event = fs_event; int r = uv_fs_event_init(loop.NativeHandle, NativeHandle); Ensure.Success(r); }
private static extern int uv_fs_event_init(IntPtr loop, IntPtr handle, string filename, uv_fs_event_cb callback, int flags);
static extern int uv_fs_event_start(IntPtr handle, uv_fs_event_cb callback, string filename, int flags);
static FileSystemWatcher() { fs_event_callback = fs_event; }
private static extern int uv_fs_event_start(IntPtr handle, uv_fs_event_cb callback, string filename, int flags);
internal static extern int uv_fs_event_start(FileSystemEvent handle, uv_fs_event_cb callback, string path, FileSystemEventFlags flags);
static extern int uv_fs_event_start(IntPtr handle, uv_fs_event_cb cb, string path, int flags);