Commit 4faf56bc authored by Kevin Wallace's avatar Kevin Wallace

Use absolute import path for c++.capnp.

This allows {schema,rpc,rpc-twoparty}.capnp to be used without modification when
relocated outside of the Cap'n Proto codebase.
parent c449295b
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
# two-party protocol initially, and then pair applications with an appropriate proxy written in # two-party protocol initially, and then pair applications with an appropriate proxy written in
# C++, rather than implement other parameterizations of the RPC protocol directly. # C++, rather than implement other parameterizations of the RPC protocol directly.
using Cxx = import "c++.capnp"; using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("capnp::rpc::twoparty"); $Cxx.namespace("capnp::rpc::twoparty");
enum Side { enum Side {
......
This diff is collapsed.
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
# bother implementing any other vat network protocol -- just use the correct container type and get # bother implementing any other vat network protocol -- just use the correct container type and get
# it for free. # it for free.
using Cxx = import "c++.capnp"; using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("capnp::rpc"); $Cxx.namespace("capnp::rpc");
# ======================================================================================== # ========================================================================================
......
This diff is collapsed.
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
using Cxx = import "c++.capnp"; using Cxx = import "/capnp/c++.capnp";
@0xa93fc509624c72d9; @0xa93fc509624c72d9;
$Cxx.namespace("capnp::schema"); $Cxx.namespace("capnp::schema");
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment