Lines 1369-1375
Link Here
|
1369 |
register_lsyncd(lua_State *L) |
1369 |
register_lsyncd(lua_State *L) |
1370 |
{ |
1370 |
{ |
1371 |
luaL_register(L, "lsyncd", lsyncdlib); |
1371 |
luaL_register(L, "lsyncd", lsyncdlib); |
1372 |
lua_setglobal(L, "lysncd"); |
1372 |
lua_setglobal(L, "lsyncd"); |
1373 |
|
1373 |
|
1374 |
// creates the metatable for jiffies userdata |
1374 |
// creates the metatable for jiffies userdata |
1375 |
luaL_newmetatable(L, "Lsyncd.jiffies"); |
1375 |
luaL_newmetatable(L, "Lsyncd.jiffies"); |
Lines 1394-1400
Link Here
|
1394 |
lua_settable(L, -3); |
1394 |
lua_settable(L, -3); |
1395 |
lua_pop(L, 1); |
1395 |
lua_pop(L, 1); |
1396 |
|
1396 |
|
1397 |
lua_getglobal(L, "lysncd"); |
1397 |
lua_getglobal(L, "lsyncd"); |
1398 |
#ifdef LSYNCD_WITH_INOTIFY |
1398 |
#ifdef LSYNCD_WITH_INOTIFY |
1399 |
// TODO why is the here? |
1399 |
// TODO why is the here? |
1400 |
register_inotify(L); |
1400 |
register_inotify(L); |