@@ -19,6 +19,7 @@ include "mcrouter/lib/carbon/test/gen/CarbonThriftTest.thrift"
1919include " common/fb303/if/fb303.thrift"
2020
2121cpp_include " mcrouter/lib/carbon/test/gen/CarbonThriftTestMessages.h"
22+ cpp_include " mcrouter/lib/carbon/CarbonThriftAdapter.h"
2223
2324namespace cpp2 carbon.test.thrift
2425namespace py3 carbon.test.thrift
@@ -30,19 +31,19 @@ service CarbonThriftTest extends fb303.FacebookService {
3031 Common_McVersionReply mcVersion (1: Common_McVersionRequest request )
3132}
3233
33- @cpp.Type {name = "carbon::test::CustomReply"}
34+ @cpp.Adapter {name = ":: carbon::util::CarbonThriftAdapter<carbon:: test::CustomReply, ::carbon::test::thrift::CustomReply> "}
3435typedef CarbonThriftTest.CustomReply CarbonThriftTest_CustomReply
35- @cpp.Type {name = "carbon::test::CustomRequest"}
36+ @cpp.Adapter {name = ":: carbon::util::CarbonThriftAdapter<carbon:: test::CustomRequest, ::carbon::test::thrift::CustomRequest> "}
3637typedef CarbonThriftTest.CustomRequest CarbonThriftTest_CustomRequest
37- @cpp.Type {name = "carbon::test::DummyThriftReply"}
38+ @cpp.Adapter {name = ":: carbon::util::CarbonThriftAdapter<carbon:: test::DummyThriftReply, ::carbon::test::thrift::DummyThriftReply> "}
3839typedef CarbonThriftTest.DummyThriftReply CarbonThriftTest_DummyThriftReply
39- @cpp.Type {name = "carbon::test::DummyThriftRequest"}
40+ @cpp.Adapter {name = ":: carbon::util::CarbonThriftAdapter<carbon:: test::DummyThriftRequest, ::carbon::test::thrift::DummyThriftRequest> "}
4041typedef CarbonThriftTest.DummyThriftRequest CarbonThriftTest_DummyThriftRequest
41- @cpp.Type {name = "carbon::test::ThriftTestReply"}
42+ @cpp.Adapter {name = ":: carbon::util::CarbonThriftAdapter<carbon:: test::ThriftTestReply, ::carbon::test::thrift::ThriftTestReply> "}
4243typedef CarbonThriftTest.ThriftTestReply CarbonThriftTest_ThriftTestReply
43- @cpp.Type {name = "carbon::test::ThriftTestRequest"}
44+ @cpp.Adapter {name = ":: carbon::util::CarbonThriftAdapter<carbon:: test::ThriftTestRequest, ::carbon::test::thrift::ThriftTestRequest> "}
4445typedef CarbonThriftTest.ThriftTestRequest CarbonThriftTest_ThriftTestRequest
45- @cpp.Type {name = "facebook::memcache::McVersionReply"}
46+ @cpp.Adapter {name = "::carbon::util::CarbonThriftAdapter< facebook::memcache::McVersionReply, ::facebook::memcache::thrift::McVersionReply> "}
4647typedef Common.McVersionReply Common_McVersionReply
47- @cpp.Type {name = "facebook::memcache::McVersionRequest"}
48- typedef Common.McVersionRequest Common_McVersionRequest
48+ @cpp.Adapter {name = "::carbon::util::CarbonThriftAdapter< facebook::memcache::McVersionRequest, ::facebook::memcache::thrift::McVersionRequest> "}
49+ typedef Common.McVersionRequest Common_McVersionRequest
0 commit comments