switch back to capn_root
capn_root now returns a ptr that can be used with capn_getp/setp. This replaces capn_new_root and capn_get_root.
This commit is contained in:
parent
69b838a092
commit
c85722874d
5 changed files with 20 additions and 31 deletions
|
|
@ -184,7 +184,7 @@ TEST(Schema, ReadSimple) {
|
|||
struct capn ctx;
|
||||
ASSERT_EQ(0, capn_init_mem(&ctx, simple_schema, sizeof(simple_schema), 0));
|
||||
|
||||
CodeGeneratorRequest_ptr root = {capn_get_root(&ctx)};
|
||||
CodeGeneratorRequest_ptr root = {capn_getp(capn_root(&ctx), 0)};
|
||||
EXPECT_EQ(CAPN_STRUCT, root.p.type);
|
||||
|
||||
struct CodeGeneratorRequest req;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue