aboutsummaryrefslogtreecommitdiff
path: root/contrib/protoc-bnet/main.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-03-26 01:24:11 +0100
committerShauren <shauren.trinity@gmail.com>2016-03-26 01:24:11 +0100
commit499a15993293bf3a793690bd8fe75a2459febb73 (patch)
tree5e53f24f98fb04ea808bee5c0fd0a686919cae49 /contrib/protoc-bnet/main.cpp
parent092d52080f3c8378bc3e5f35b7066c03500314e2 (diff)
Contrib: Added sources of the protoc plugin used to generate services
Diffstat (limited to 'contrib/protoc-bnet/main.cpp')
-rw-r--r--contrib/protoc-bnet/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/protoc-bnet/main.cpp b/contrib/protoc-bnet/main.cpp
new file mode 100644
index 00000000000..7fc55c88293
--- /dev/null
+++ b/contrib/protoc-bnet/main.cpp
@@ -0,0 +1,8 @@
+#include "BnetCodeGenerator.h"
+#include <google/protobuf/compiler/plugin.h>
+
+int main(int argc, char* argv[])
+{
+ BnetCodeGenerator gen;
+ return google::protobuf::compiler::PluginMain(argc, argv, &gen);
+}