From 8f2758dda2ba12b78ae8f8c7170decc5e88dd28c Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 3 Sep 2011 11:14:18 -0700 Subject: Work on C++ wrappers, added C++ test. --- bindings/cpp/upb/pb/glue.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bindings/cpp/upb/pb/glue.hpp (limited to 'bindings/cpp/upb/pb/glue.hpp') diff --git a/bindings/cpp/upb/pb/glue.hpp b/bindings/cpp/upb/pb/glue.hpp new file mode 100644 index 0000000..be072a7 --- /dev/null +++ b/bindings/cpp/upb/pb/glue.hpp @@ -0,0 +1,23 @@ +/* + * upb - a minimalist implementation of protocol buffers. + * + * Copyright (c) 2011 Google Inc. See LICENSE for details. + * Author: Josh Haberman + */ + +#ifndef UPB_PB_GLUE_HPP +#define UPB_PB_GLUE_HPP + +#include "upb/upb.hpp" +#include "upb/pb/glue.h" + +namespace upb { + +bool LoadDescriptorFileIntoSymtab(SymbolTable* s, const char *fname, + Status* status) { + return upb_load_descriptor_file_into_symtab(s, fname, status); +} + +} // namespace upb + +#endif -- cgit v1.2.3