Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Otrishko <shishugi@gmail.com>2020-02-10 01:17:33 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2020-02-17 23:40:40 +0300
commit54caf76210a6ebd0f592c0a3e9539e1ed10132cc (patch)
tree55d51ed840e90b7fcbf25f58e6f677df9632a24d /src/node_options.h
parent95d509e974957b385ef54f01015df23b0fcb5a5c (diff)
src: allow to reuse env options handling
PR-URL: https://github.com/nodejs/node/pull/31711 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'src/node_options.h')
-rw-r--r--src/node_options.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node_options.h b/src/node_options.h
index f49d35cedad..470007f06b6 100644
--- a/src/node_options.h
+++ b/src/node_options.h
@@ -457,6 +457,13 @@ extern Mutex cli_options_mutex;
extern std::shared_ptr<PerProcessOptions> cli_options;
} // namespace per_process
+
+void HandleEnvOptions(std::shared_ptr<EnvironmentOptions> env_options);
+void HandleEnvOptions(std::shared_ptr<EnvironmentOptions> env_options,
+ std::function<std::string(const char*)> opt_getter);
+
+std::vector<std::string> ParseNodeOptionsEnvVar(
+ const std::string& node_options, std::vector<std::string>* errors);
} // namespace node
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS