34 #ifndef SRC_COMPILER_CONFIG_H
35 #define SRC_COMPILER_CONFIG_H
37 #include <grpc++/config.h>
39 #ifndef GRPC_CUSTOM_DESCRIPTOR
40 #include <google/protobuf/descriptor.h>
41 #include <google/protobuf/descriptor.pb.h>
42 #define GRPC_CUSTOM_DESCRIPTOR ::google::protobuf::Descriptor
43 #define GRPC_CUSTOM_FILEDESCRIPTOR ::google::protobuf::FileDescriptor
44 #define GRPC_CUSTOM_METHODDESCRIPTOR ::google::protobuf::MethodDescriptor
45 #define GRPC_CUSTOM_SERVICEDESCRIPTOR ::google::protobuf::ServiceDescriptor
48 #ifndef GRPC_CUSTOM_CODEGENERATOR
49 #include <google/protobuf/compiler/code_generator.h>
50 #define GRPC_CUSTOM_CODEGENERATOR ::google::protobuf::compiler::CodeGenerator
51 #define GRPC_CUSTOM_GENERATORCONTEXT ::google::protobuf::compiler::GeneratorContext
54 #ifndef GRPC_CUSTOM_PRINTER
55 #include <google/protobuf/io/coded_stream.h>
56 #include <google/protobuf/io/printer.h>
57 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
58 #define GRPC_CUSTOM_PRINTER ::google::protobuf::io::Printer
59 #define GRPC_CUSTOM_CODEDOUTPUTSTREAM ::google::protobuf::io::CodedOutputStream
60 #define GRPC_CUSTOM_STRINGOUTPUTSTREAM ::google::protobuf::io::StringOutputStream
63 #ifndef GRPC_CUSTOM_PLUGINMAIN
64 #include <google/protobuf/compiler/plugin.h>
65 #define GRPC_CUSTOM_PLUGINMAIN ::google::protobuf::compiler::PluginMain
70 typedef GRPC_CUSTOM_DESCRIPTOR Descriptor;
71 typedef GRPC_CUSTOM_FILEDESCRIPTOR FileDescriptor;
72 typedef GRPC_CUSTOM_METHODDESCRIPTOR MethodDescriptor;
73 typedef GRPC_CUSTOM_SERVICEDESCRIPTOR ServiceDescriptor;
75 typedef GRPC_CUSTOM_CODEGENERATOR CodeGenerator;
76 typedef GRPC_CUSTOM_GENERATORCONTEXT GeneratorContext;
77 static inline int PluginMain(
int argc,
char* argv[],
78 const CodeGenerator* generator) {
79 return GRPC_CUSTOM_PLUGINMAIN(argc, argv, generator);
83 typedef GRPC_CUSTOM_PRINTER Printer;
84 typedef GRPC_CUSTOM_CODEDOUTPUTSTREAM CodedOutputStream;
85 typedef GRPC_CUSTOM_STRINGOUTPUTSTREAM StringOutputStream;
90 #endif // SRC_COMPILER_CONFIG_H