Commit aae48e3a authored by Raman's avatar Raman Committed by GitHub

Update idl.h

parent ff57f52b
......@@ -337,6 +337,7 @@ struct IDLOptions {
bool generate_all;
bool skip_unexpected_fields_in_json;
bool generate_name_strings;
bool escape_proto_identifiers;
// Possible options for the more general generator below.
enum Language { kJava, kCSharp, kGo, kMAX };
......@@ -356,6 +357,7 @@ struct IDLOptions {
generate_all(false),
skip_unexpected_fields_in_json(false),
generate_name_strings(false),
escape_proto_identifiers(false),
lang(IDLOptions::kJava) {}
};
......@@ -644,10 +646,12 @@ extern bool GenerateGeneral(const Parser &parser,
// Generate a schema file from the internal representation, useful after
// parsing a .proto schema.
extern std::string GenerateFBS(const Parser &parser,
const std::string &file_name);
const std::string &file_name,
const bool &escape_proto_identifiers);
extern bool GenerateFBS(const Parser &parser,
const std::string &path,
const std::string &file_name);
const std::string &file_name,
const bool &escape_proto_identifiers);
// Generate a make rule for the generated JavaScript code.
// See idl_gen_js.cpp.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment