Skip to content

Commit

Permalink
c_void can't be bound to variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sokorototo committed Jan 12, 2025
1 parent bdfed59 commit d9b433a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/c-bindings/bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
#define E_CRYPTO_ERROR -9

// Archive loader configuration
typedef void v_archive_config;
typedef char v_archive_config;

// An Archive instance, bound to either a file or a buffer
typedef void v_archive;
typedef unsigned char v_archive;

// A list archive entry IDs
typedef struct v_entries {
Expand Down
4 changes: 2 additions & 2 deletions crates/c-bindings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub const V_MAGIC_LENGTH: usize = 5;
pub const V_PUBLIC_KEY_LENGTH: usize = 32;

/// Archive loader configuration
pub type v_archive_config = raw::c_void;
pub type v_archive_config = raw::c_char;

/// Create new loader configuration
#[no_mangle]
Expand Down Expand Up @@ -77,7 +77,7 @@ impl io::Seek for ArchiveInner {
}

/// An Archive instance, bound to either a file or a buffer
pub type v_archive = raw::c_void;
pub type v_archive = raw::c_uchar;

/// Create a new archive from a file
#[no_mangle]
Expand Down

0 comments on commit d9b433a

Please sign in to comment.