Update idl.h
This commit is contained in:
parent
ff57f52b72
commit
aae48e3a9d
|
@ -337,7 +337,8 @@ 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.
|
||||
|
|
Loading…
Reference in New Issue