From 030b0f000da6f387725295b18b9a91e09b4f989d Mon Sep 17 00:00:00 2001 From: Avril Date: Wed, 24 Jun 2020 17:18:33 +0100 Subject: [PATCH] flags placeholder --- include/khash.h | 2 ++ src/ctx.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/khash.h b/include/khash.h index 59d7acd..39b1a5d 100644 --- a/include/khash.h +++ b/include/khash.h @@ -1,3 +1,4 @@ + #ifndef _KHASH_H #define _KHASH_H @@ -38,6 +39,7 @@ extern "C" { /// A valid context for khash functinos. Instantiated with `khash_new_context`. typedef struct { uint8_t algo; + uint64_t flags; khash_salt salt; } khash_ctx; diff --git a/src/ctx.rs b/src/ctx.rs index b77a8d9..f673523 100644 --- a/src/ctx.rs +++ b/src/ctx.rs @@ -74,6 +74,7 @@ impl Context CContext{ algo: u8::from(self.algo), salt: salt::into_raw(self.salt), + flags: Default::default(), } } @@ -121,6 +122,7 @@ pub const ALGO_SHA256_TRUNCATED: u8 = 4; pub struct CContext { algo: u8, + flags: u64, //nothing yet, might be flags later idk salt: salt::FFI, }