-
-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
28 deletions.
There are no files selected for viewing
Submodule bee.lua
updated
7 files
+7 −0 | bee/filewatch/filewatch.h | |
+11 −3 | bee/filewatch/filewatch_linux.cpp | |
+4 −0 | bee/filewatch/filewatch_osx.cpp | |
+4 −0 | bee/filewatch/filewatch_win.cpp | |
+54 −1 | binding/lua_filewatch.cpp | |
+82 −0 | binding/luaref.cpp | |
+11 −0 | binding/luaref.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
---@meta | ||
|
||
---@class bee.filewatch.instance | ||
local instance = {} | ||
|
||
---@param path string | ||
function instance:add(path) | ||
end | ||
|
||
---@param enable boolean | ||
---@return boolean | ||
function instance:set_recursive(enable) | ||
end | ||
|
||
---@param enable boolean | ||
---@return boolean | ||
function instance:set_follow_symlinks(enable) | ||
end | ||
|
||
---@param callback? fun(path: string):boolean | ||
---@return boolean | ||
function instance:set_filter(callback) | ||
end | ||
|
||
---@class bee.filewatch | ||
local fw = {} | ||
|
||
---@return bee.filewatch.instance | ||
function fw.create() | ||
end | ||
|
||
return fw |