summaryrefslogtreecommitdiffstats
path: root/nse_nmaplib.h
diff options
context:
space:
mode:
Diffstat (limited to 'nse_nmaplib.h')
-rw-r--r--nse_nmaplib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/nse_nmaplib.h b/nse_nmaplib.h
new file mode 100644
index 0000000..848809f
--- /dev/null
+++ b/nse_nmaplib.h
@@ -0,0 +1,16 @@
+#ifndef NSE_NMAPLIB
+#define NSE_NMAPLIB
+
+#define NSE_NMAPLIBNAME "nmap"
+
+class Target;
+class Port;
+
+int luaopen_nmap(lua_State* l);
+#define NSE_NUM_HOSTINFO_FIELDS 17
+void set_hostinfo(lua_State* l, Target* currenths);
+#define NSE_NUM_PORTINFO_FIELDS 7
+void set_portinfo(lua_State* l, const Target *target, const Port* port);
+
+#endif
+