From e812be4a55915575fc1afce739848026a48b781e Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 23 Aug 2018 16:41:05 +0200 Subject: src: make CLI options programatically accesible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/node_internals.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/node_internals.h') 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 per_process_opts; extern const char* const environment_flags[]; -- cgit v1.2.3