diff options
Diffstat (limited to 'src/libcrawler/libcrawler.cpp')
-rw-r--r-- | src/libcrawler/libcrawler.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libcrawler/libcrawler.cpp b/src/libcrawler/libcrawler.cpp new file mode 100644 index 0000000..0c549a4 --- /dev/null +++ b/src/libcrawler/libcrawler.cpp @@ -0,0 +1,18 @@ +#include "libcrawler.hpp" + +#include <iostream> + +#ifdef WITH_LUA +#include "tolua.h" +#include "URLLua.hpp" +#include "LuaVM.hpp" +#endif + +void initialize_libcrawler( void *user_data ) +{ +#ifdef WITH_LUA + LuaVM *vm = (LuaVM *)user_data; + tolua_URL_open( vm->handle( ) ); +#endif +} + |