From 1c76f41b61f852233103d3d458c74b0b546104a7 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Fri, 12 Feb 2021 15:49:15 -0800 Subject: Add C++ namespace definitions. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- interchange/LogicalNetlist.capnp | 3 +++ interchange/PhysicalNetlist.capnp | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'interchange') diff --git a/interchange/LogicalNetlist.capnp b/interchange/LogicalNetlist.capnp index 5189be5..d61a660 100644 --- a/interchange/LogicalNetlist.capnp +++ b/interchange/LogicalNetlist.capnp @@ -18,6 +18,9 @@ using Ref = import "References.capnp"; $Java.package("com.xilinx.rapidwright.interchange"); $Java.outerClassname("LogicalNetlist"); +using Cxx = import "/capnp/c++.capnp"; +$Cxx.namespace("LogicalNetlist"); + struct HashSet { type @0 : Ref.ImplementationType = enumerator; hide @1 : Bool = true; diff --git a/interchange/PhysicalNetlist.capnp b/interchange/PhysicalNetlist.capnp index d3835e1..6758039 100644 --- a/interchange/PhysicalNetlist.capnp +++ b/interchange/PhysicalNetlist.capnp @@ -11,13 +11,16 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - @0xcb2ccd67aa912968; using Java = import "/capnp/java.capnp"; -using Ref = import "References.capnp"; $Java.package("com.xilinx.rapidwright.interchange"); $Java.outerClassname("PhysicalNetlist"); +using Cxx = import "/capnp/c++.capnp"; +$Cxx.namespace("PhysicalNetlist"); + +using Ref = import "References.capnp"; + struct StringRef { type @0 :Ref.ReferenceType = rootValue; field @1 :Text = "strList"; -- cgit v1.2.3