1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 08:11:32 +00:00

Use forward-declaration of class Target instead of including Target.h in *.h

This commit is contained in:
dmiller
2015-06-30 04:04:48 +00:00
parent 0d2f16a8f4
commit 80f8eb6bce
4 changed files with 6 additions and 3 deletions

View File

@@ -139,6 +139,7 @@
#include "protocols.h"
#include "targets.h"
#include "TargetGroup.h"
#include "Target.h"
#include "service_scan.h"
#include "charpool.h"
#include "nmap_error.h"

View File

@@ -125,6 +125,7 @@
#include "nmap_error.h"
#include "NmapOps.h"
#include "Target.h"
#include "payload.h"
#include "scan_engine_raw.h"
#include "struct_ip.h"

View File

@@ -127,9 +127,10 @@
#define SCAN_ENGINE_RAW_H
#include "scan_engine.h"
#include "Target.h"
#include <vector>
class Target;
void increment_base_port();
int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime);
void begin_sniffer(UltraScanInfo *USI, std::vector<Target *> &Targets);

View File

@@ -125,10 +125,10 @@
#ifndef NMAP_TRACEROUTE_H
#define NMAP_TRACEROUTE_H
#include "Target.h"
#include <vector>
class Target;
int traceroute(std::vector<Target *> &Targets);
void traceroute_hop_cache_clear();