rust_libindy_wrapper/native/
mod.rs1pub mod anoncreds;
2pub mod blob_storage;
3pub mod crypto;
4pub mod did;
5pub mod ledger;
6pub mod non_secrets;
7pub mod pairwise;
8pub mod payments;
9pub mod pool;
10pub mod wallet;
11
12use std::os::raw::c_char;
13
14pub type BString = *const u8;
15pub type CString = *const c_char;
16pub type Handle = i32;
17pub type Error = i32;
18
19pub type ResponseEmptyCB = extern fn(xcommand_handle: Handle, err: Error);
20pub type ResponseBoolCB = extern fn(xcommand_handle: Handle, err: Error, bool1: u8);
21pub type ResponseI32CB = extern fn(xcommand_handle: Handle, err: Error, handle: Handle);
22pub type ResponseI32UsizeCB = extern fn(xcommand_handle: Handle, err: Error, handle: Handle, total_count: usize);
23pub type ResponseStringCB = extern fn(xcommand_handle: Handle, err: Error, str1: CString);
24pub type ResponseStringStringCB = extern fn(xcommand_handle: Handle, err: Error, str1: CString, str2: CString);
25pub type ResponseStringStringStringCB = extern fn(xcommand_handle: Handle, err: Error, str1: CString, str2: CString, str3: CString);
26pub type ResponseSliceCB = extern fn(xcommand_handle: Handle, err: Error, raw: BString, len: u32);
27pub type ResponseStringSliceCB = extern fn(xcommand_handle: Handle, err: Error, str1: CString, raw: BString, len: u32);
28pub type ResponseStringStringU64CB = extern fn(xcommand_handle: Handle, err: Error, arg1: CString, arg2: CString, arg3: u64);