summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-12 15:49:15 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-12 15:49:15 -0800
commit1c76f41b61f852233103d3d458c74b0b546104a7 (patch)
tree08d07b0ae216a59054dd964bf6ec67e3357b6b08
parenta7e383bc4d884ab0c8f3cf96b353b94947802e2b (diff)
downloadfpga-interchange-schema-1c76f41b61f852233103d3d458c74b0b546104a7.tar.gz
fpga-interchange-schema-1c76f41b61f852233103d3d458c74b0b546104a7.tar.bz2
fpga-interchange-schema-1c76f41b61f852233103d3d458c74b0b546104a7.zip
Add C++ namespace definitions.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
-rw-r--r--interchange/LogicalNetlist.capnp3
-rw-r--r--interchange/PhysicalNetlist.capnp7
2 files changed, 8 insertions, 2 deletions
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";