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:
James McKaskill 2013-05-12 00:47:12 -04:00
parent 69b838a092
commit c85722874d
5 changed files with 20 additions and 31 deletions

View file

@ -617,7 +617,7 @@ int main() {
return -1;
}
root.p = capn_get_root(&capn);
root.p = capn_getp(capn_root(&capn), 0);
read_CodeGeneratorRequest(&req, root);
for (i = 0; i < req.nodes.p.len; i++) {