mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-11-12 00:06:26 +00:00
27 lines
586 B
C
27 lines
586 B
C
/*
|
|
| userobs.h from Lsyncd -- the Live (Mirror) Syncing Demon
|
|
|
|
|
| Allows user Lua scripts to observe file descriptors.
|
|
|
|
|
| They have to be opened by some other utility tough,
|
|
| for example lua-posix.
|
|
|
|
|
| License: GPLv2 (see COPYING) or any later version
|
|
| Authors: Axel Kittenberger <axkibe@gmail.com>
|
|
*/
|
|
#ifndef LSYNCD_USEROBS_H
|
|
#define LSYNCD_USEROBS_H
|
|
|
|
|
|
// Allows user scripts to observe filedescriptors.
|
|
// To be called from Lua.
|
|
extern int l_observe_fd( lua_State *L );
|
|
|
|
|
|
// Removes a user observance.
|
|
// To be called from Lua.
|
|
extern int l_nonobserve_fd( lua_State *L );
|
|
|
|
|
|
#endif
|