diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/test_cpp.cc | 1 | ||||
-rw-r--r-- | upb/pb/textprinter.h | 7 |
3 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 58d6571..dfdeba5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,6 +93,7 @@ add_library(upb_pb upb/pb/textprinter.c upb/pb/varint.c upb/pb/varint.int.h + upb/table.int.h upb/pb/decoder.h upb/pb/encoder.h upb/pb/textprinter.h) diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc index 5e9a8dd..86d7bc5 100644 --- a/tests/test_cpp.cc +++ b/tests/test_cpp.cc @@ -15,6 +15,7 @@ #include "upb/def.h" #include "upb/handlers.h" #include "upb/pb/decoder.h" +#include "upb/pb/textprinter.h" #include "upb/upb.h" #include "upb_test.h" diff --git a/upb/pb/textprinter.h b/upb/pb/textprinter.h index 80abc00..0af2b1a 100644 --- a/upb/pb/textprinter.h +++ b/upb/pb/textprinter.h @@ -42,9 +42,10 @@ class upb::pb::TextPrinterPtr { /* The given handlers must have come from NewHandlers(). It must outlive the * TextPrinter. */ - static TextPrinterPtr *Create(Arena *arena, const upb::Handlers *handlers, - BytesSink output) { - return TextPrinterPtr(upb_textprinter_create(arena, handlers, output)); + static TextPrinterPtr Create(Arena *arena, upb::HandlersPtr *handlers, + BytesSink output) { + return TextPrinterPtr( + upb_textprinter_create(arena->ptr(), handlers->ptr(), output.sink())); } void SetSingleLineMode(bool single_line) { |