From 2486b4a82aa3266d375000ba55e04a3779645c55 Mon Sep 17 00:00:00 2001 From: lurchi Date: Sun, 4 Sep 2016 15:04:07 +0200 Subject: [PATCH] accidentally removed PsycElem --- rust/src/packet_types.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rust/src/packet_types.rs b/rust/src/packet_types.rs index cad030d..a316609 100644 --- a/rust/src/packet_types.rs +++ b/rust/src/packet_types.rs @@ -61,6 +61,14 @@ pub enum PsycPacketId { PSYC_PACKET_ID_ELEMS = 5, } +#[repr(C)] +pub struct PsycElem { + pub elem_type: PsycString, + pub value: PsycString, + pub length: usize, + pub flag: PsycElemFlag +} + #[repr(C)] pub struct RawPsycList { list_type: PsycString, @@ -108,6 +116,3 @@ pub enum PsycRenderRC { /// Packet is rendered successfully in the buffer. PSYC_RENDER_SUCCESS = 0, } - - -