diff options
author | Eugene Ostroukhov <eostroukhov@chromium.org> | 2016-11-18 13:52:22 -0800 |
---|---|---|
committer | Eugene Ostroukhov <eostroukhov@chromium.org> | 2016-12-09 09:07:50 -0800 |
commit | f9aadfbc5adb3b9ee9357636d846dff1556b9acc (patch) | |
tree | 7ec6dded7ce804ac4069d56826cbd55593c9a450 /src/debug-agent.h | |
parent | bc335c0a8d68164fd978192409ab6c4986cfe374 (diff) | |
download | android-node-v8-f9aadfbc5adb3b9ee9357636d846dff1556b9acc.tar.gz android-node-v8-f9aadfbc5adb3b9ee9357636d846dff1556b9acc.tar.bz2 android-node-v8-f9aadfbc5adb3b9ee9357636d846dff1556b9acc.zip |
inspector: move options parsing
As inspector functionality expands, more options will need to be added.
Currently this requires changing adding function arguments, etc. This
change packs the veriables into a single class that can be extended
without changing APIs.
PR-URL: https://github.com/nodejs/node/pull/9691
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/debug-agent.h')
-rw-r--r-- | src/debug-agent.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug-agent.h b/src/debug-agent.h index 783403cf09..0faa25f124 100644 --- a/src/debug-agent.h +++ b/src/debug-agent.h @@ -25,6 +25,7 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "node_mutex.h" +#include "node_debug_options.h" #include "util.h" #include "util-inl.h" #include "uv.h" @@ -76,7 +77,7 @@ class Agent { typedef void (*DispatchHandler)(node::Environment* env); // Start the debugger agent thread - bool Start(const char* host, int port, bool wait); + bool Start(const DebugOptions& options); // Listen for debug events void Enable(); // Stop the debugger agent @@ -114,9 +115,8 @@ class Agent { }; State state_; + DebugOptions options_; - std::string host_; - int port_; bool wait_; uv_sem_t start_sem_; |