Add type for 8 u16s (which is used for the scoring data)
[ldk-c-bindings] / lightning-c-bindings / src / c_types / mod.rs
index f23f002d05c7ccfe8607ffd5b30eae0c79d0017b..cf708d03df49082d47d4ad6e6428679d413b25ff 100644 (file)
@@ -629,6 +629,11 @@ pub struct SixteenBytes { /** The sixteen bytes */ pub data: [u8; 16], }
 /// A 20-byte byte array.
 pub struct TwentyBytes { /** The twenty bytes */ pub data: [u8; 20], }
 
+#[derive(Clone)]
+#[repr(C)]
+/// 8 u16s
+pub struct EightU16s { /** The eight 16-bit integers */ pub data: [u16; 8], }
+
 pub(crate) struct VecWriter(pub Vec<u8>);
 impl lightning::util::ser::Writer for VecWriter {
        fn write_all(&mut self, buf: &[u8]) -> Result<(), io::Error> {