From 65ad6495198425b4186367ab3d177526d1a48f27 Mon Sep 17 00:00:00 2001 From: Avril Date: Wed, 23 Jun 2021 23:20:41 +0100 Subject: [PATCH] TODO: rework error reporting --- src/ffi.rs | 11 ----------- src/ffi/error.rs | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/ffi.rs b/src/ffi.rs index d6117c7..da35e62 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -14,16 +14,6 @@ use key::{ IV, }; -/* -#[derive(Debug, Clone, PartialEq, Eq, Hash, Copy, PartialOrd, Ord, Default)] -#[repr(C)] -pub struct CKey([u8; key::KEY_SIZE]); - -#[derive(Debug, Clone, PartialEq, Eq, Hash, Copy, PartialOrd, Ord, Default)] -#[repr(C)] -pub struct CIv([u8; key::IV_SIZE]); - */ - /// Non-encrypted wrapper #[derive(Debug, Clone, PartialEq, Eq, Hash)] #[repr(C)] @@ -36,7 +26,6 @@ pub struct CPassthrough } /// A sink wrapper of `CPassthrough`. -//TODO: Create a Custom Stream in `wrapper.c` that allows creating a FILE* object with `fopencookie()` from this. #[derive(Debug)] #[repr(C)] pub struct CSink diff --git a/src/ffi/error.rs b/src/ffi/error.rs index edbceba..cf52eae 100644 --- a/src/ffi/error.rs +++ b/src/ffi/error.rs @@ -2,6 +2,7 @@ use super::*; +//TODO: Rework the error handling/reporting here. #[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Copy)] #[repr(C)] pub enum CErr