mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Moved the includes for Lua headers to the .cc files so they are not needlessly, repeatedly included. Similarly, moved some standard headers to the .cc files and reorganized includes to be uniform for all nse_* source files. Fixed whitespace (removed tabs).
21 lines
634 B
C
21 lines
634 B
C
#ifndef NSE_INIT
|
|
#define NSE_INIT
|
|
|
|
// initialize the lua state
|
|
// opens the standard libraries and the nmap lua library
|
|
int init_lua(lua_State* L);
|
|
|
|
//takes the script arguments provided to nmap through --script-args and
|
|
//processes and checks them - leaves the processed string on the stack
|
|
int init_parseargs(lua_State* L);
|
|
//sets the previously parsed args inside nmap.registry
|
|
int init_setargs(lua_State* L);
|
|
|
|
// you give it a description of scripts to run and it
|
|
// populates the tables 'hosttests' and 'porttests' in l with
|
|
// activation records for tests
|
|
int init_rules(lua_State *L);
|
|
int init_updatedb(lua_State* L);
|
|
|
|
#endif
|