aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/node_generator.h
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2018-05-08 10:24:30 -0700
committerGravatar Sree Kuchibhotla <sreek@google.com>2018-05-08 10:24:30 -0700
commit6d5c2c250d4f96af7cc413ce245dc131a9cf4cf9 (patch)
tree29c94b81a45c1182d41f6dce8dc8e2391614b933 /src/compiler/node_generator.h
parentdc01cb64c25abc14f6d0ab24db1afd019a37d7ee (diff)
parent978b9b179e631348cf8b62bf64af7fc65e322fc4 (diff)
Merge branch 'master' into fix-time
Diffstat (limited to 'src/compiler/node_generator.h')
-rw-r--r--src/compiler/node_generator.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/compiler/node_generator.h b/src/compiler/node_generator.h
index a9ffe75fc8..f3a531597a 100644
--- a/src/compiler/node_generator.h
+++ b/src/compiler/node_generator.h
@@ -23,7 +23,14 @@
namespace grpc_node_generator {
-grpc::string GenerateFile(const grpc::protobuf::FileDescriptor* file);
+// Contains all the parameters that are parsed from the command line.
+struct Parameters {
+ // Sets the earliest version of nodejs that needs to be supported.
+ int minimum_node_version;
+};
+
+grpc::string GenerateFile(const grpc::protobuf::FileDescriptor* file,
+ const Parameters& params);
} // namespace grpc_node_generator