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, }