chiark / gitweb /
apitest: Promote PIA and PIB to where wdriver can use them
[otter.git] / apitest / apitest.rs
index 2bbdf89fee74ca2fdb6ca763df21fa56d616cc9d..8bad2194918f050196601136e1d1bebb7f81a40a 100644 (file)
@@ -32,6 +32,13 @@ pub type MgmtChannel = ClientMgmtChannel;
 pub type JsV = serde_json::Value;
 pub type MC = MgmtCommand;
 
+mod pi {
+  use otter::prelude::define_index_type;
+  define_index_type!{ pub struct PIA = usize; }
+  define_index_type!{ pub struct PIB = usize; }
+}
+pub use pi::*;
+
 // -------------------- private crates ----------
 
 use otter_support::config::DAEMON_STARTUP_REPORT;