X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7b080a40a5b9d39c8af0a61371b433ee61cb52ff..8c6fa3fbaccc22127280bf77a48fab5a3ee0716e:/projects/stargazer/plugins/capture/cap_debug/debug_cap.h diff --git a/projects/stargazer/plugins/capture/cap_debug/debug_cap.h b/projects/stargazer/plugins/capture/cap_debug/debug_cap.h index d0aad764..8b1ccb92 100644 --- a/projects/stargazer/plugins/capture/cap_debug/debug_cap.h +++ b/projects/stargazer/plugins/capture/cap_debug/debug_cap.h @@ -36,9 +36,6 @@ $Author: faust $ #include "stg/plugin.h" #include "stg/module_settings.h" -using namespace std; -extern "C" PLUGIN * GetPlugin(); - //----------------------------------------------------------------------------- struct iphdr_eth { uint8_t ihl:4, @@ -58,8 +55,8 @@ struct iphdr_eth { //----------------------------------------------------------------------------- class CAP_SETTINGS { public: - const string & GetStrError() const { static string s; return s; } - int ParseSettings(const MODULE_SETTINGS & s) { return 0; } + const std::string & GetStrError() const { static std::string s; return s; } + int ParseSettings(const MODULE_SETTINGS & s) { return 0; } }; //----------------------------------------------------------------------------- class DEBUG_CAP :public PLUGIN @@ -72,18 +69,18 @@ public: int Start(); int Stop(); - int Reload() { return 0; } + int Reload(const MODULE_SETTINGS & /*ms*/) { return 0; } int ParseSettings() { return 0; } bool IsRunning(); - const string & GetStrError() const; - const string GetVersion() const; + const std::string & GetStrError() const; + std::string GetVersion() const; uint16_t GetStartPosition() const; uint16_t GetStopPosition() const; private: static void * Run1(void *); static void * Run2(void *); static void * Run3(void *); - mutable string errorStr; + mutable std::string errorStr; CAP_SETTINGS capSettings; pthread_t thread; bool nonstop;