lsyncd/core/userobs.h

27 lines
586 B
C
Raw Permalink Normal View History

2018-04-03 06:54:07 +00:00
/*
| 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
2018-06-06 07:24:13 +00:00
2018-04-03 06:54:07 +00:00
// Allows user scripts to observe filedescriptors.
// To be called from Lua.
extern int l_observe_fd( lua_State *L );
2018-06-06 07:24:13 +00:00
2018-04-03 06:54:07 +00:00
// Removes a user observance.
// To be called from Lua.
extern int l_nonobserve_fd( lua_State *L );
2018-06-06 07:24:13 +00:00
2018-04-03 06:54:07 +00:00
#endif