diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-08-23 16:41:05 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-09-01 00:13:20 +0200 |
commit | e812be4a55915575fc1afce739848026a48b781e (patch) | |
tree | 2d654c5ef1a58ec22de69158305785b1556d06f6 /src/node_internals.h | |
parent | 403df7c8a15a9714038c73e90371bed0d37437fa (diff) | |
download | android-node-v8-e812be4a55915575fc1afce739848026a48b781e.tar.gz android-node-v8-e812be4a55915575fc1afce739848026a48b781e.tar.bz2 android-node-v8-e812be4a55915575fc1afce739848026a48b781e.zip |
src: make CLI options programatically accesible
Provide `internalBinding('options')` with some utilities
around making the options parser and current options values
programatically accessible.
PR-URL: https://github.com/nodejs/node/pull/22490
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index eb9e79d9e8..2fa9502466 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -119,6 +119,7 @@ struct sockaddr; V(js_stream) \ V(messaging) \ V(module_wrap) \ + V(options) \ V(os) \ V(performance) \ V(pipe_wrap) \ @@ -176,6 +177,7 @@ extern Mutex environ_mutex; // Tells whether it is safe to call v8::Isolate::GetCurrent(). extern bool v8_initialized; +extern Mutex per_process_opts_mutex; extern std::shared_ptr<PerProcessOptions> per_process_opts; extern const char* const environment_flags[]; |