From 2155417d389c50bca2e4d8c74178f40de6aaafce Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Sun, 8 Dec 2013 15:52:31 -0800 Subject: [PATCH] Fixup examples for recent API changes --- examples/example_capability.capnp | 2 +- examples/test.capnp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/example_capability.capnp b/examples/example_capability.capnp index bb93c1d..6df9cdb 100644 --- a/examples/example_capability.capnp +++ b/examples/example_capability.capnp @@ -37,7 +37,7 @@ interface TestExtends extends(TestInterface) { interface TestPipeline { getCap @0 (n: UInt32, inCap :TestInterface) -> (s: Text, outBox :Box); - testPointers @1 (cap :TestInterface, obj :Object, list :List(TestInterface)) -> (); + testPointers @1 (cap :TestInterface, obj :AnyPointer, list :List(TestInterface)) -> (); struct Box { cap @0 :TestInterface; diff --git a/examples/test.capnp b/examples/test.capnp index 65406f0..febd83a 100644 --- a/examples/test.capnp +++ b/examples/test.capnp @@ -161,7 +161,7 @@ struct TestDefaults { } struct TestObject { - objectField @0 :Object; + objectField @0 :AnyPointer; # Do not add any other fields here! Some tests rely on objectField being the last pointer # in the struct. @@ -587,7 +587,7 @@ interface TestExtends extends(TestInterface) { interface TestPipeline { getCap @0 (n: UInt32, inCap :TestInterface) -> (s: Text, outBox :Box); - testPointers @1 (cap :TestInterface, obj :Object, list :List(TestInterface)) -> (); + testPointers @1 (cap :TestInterface, obj :AnyPointer, list :List(TestInterface)) -> (); struct Box { cap @0 :TestInterface;