File: main.cc

package info (click to toggle)
protobuf-c 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,252 kB
  • ctags: 1,221
  • sloc: sh: 11,353; ansic: 4,399; cpp: 3,345; xml: 181; makefile: 162
file content (17 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <google/protobuf/compiler/command_line_interface.h>
#include <protoc-c/c_generator.h>


int main(int argc, char* argv[]) {
  google::protobuf::compiler::CommandLineInterface cli;

  // Support generation of Foo code.
  google::protobuf::compiler::c::CGenerator c_generator;
  cli.RegisterGenerator("--c_out", &c_generator,
  "Generate C/H files.");

  // Add version info generated by automake
  cli.SetVersionInfo(PACKAGE_STRING);
  
  return cli.Run(argc, argv);
}