extern crate libc;
use api::ErrorCode;
use self::libc::c_char;
#[no_mangle]
pub extern fn sovrin_register_wallet_type(xtype: *const c_char,
create: extern fn(name: *const c_char,
config: *const c_char,
credentials: *const c_char) -> ErrorCode,
open: extern fn(name: *const c_char,
config: *const c_char,
credentials: *const c_char,
handle: *const *mut i32) -> ErrorCode,
set: extern fn(handle: i32,
key: *const c_char, sub_key: *const c_char,
value: *const c_char) -> ErrorCode,
get: extern fn(handle: i32,
key: *const c_char, sub_key: *const c_char,
value_ptr: *const *mut c_char,
value_life_time: *const *mut i32) -> ErrorCode,
close: extern fn(handle: i32) -> ErrorCode,
delete: extern fn(name: *const c_char) -> ErrorCode,
free: extern fn(wallet_handle: i32, str: *const c_char) -> ErrorCode) -> ErrorCode {
unimplemented!();
}
#[no_mangle]
pub extern fn sovrin_create_wallet(command_handle: i32,
pool_name: *const c_char,
name: *const c_char,
xtype: *const c_char,
config: *const c_char,
credentials: *const c_char,
cb: extern fn(xcommand_handle: i32, err: ErrorCode)) -> ErrorCode {
unimplemented!();
}
#[no_mangle]
pub extern fn sovrin_open_wallet(command_handle: i32,
pool_handle: i32,
name: *const c_char,
config: *const c_char,
credentials: *const c_char,
cb: extern fn(xcommand_handle: i32, err: ErrorCode, handle: i32)) -> ErrorCode {
unimplemented!();
}
#[no_mangle]
pub extern fn sovrin_close_wallet(command_handle: i32,
handle: i32,
cb: extern fn(xcommand_handle: i32, err: ErrorCode)) -> ErrorCode {
unimplemented!();
}
#[no_mangle]
pub extern fn sovrin_delete_wallet(command_handle: i32,
name: *const c_char,
cb: extern fn(xcommand_handle: i32, err: ErrorCode)) -> ErrorCode {
unimplemented!();
}
#[no_mangle]
pub extern fn sovrin_wallet_set_seq_no_for_value(command_handle: i32,
wallet_handle: i32,
wallet_key: *const c_char,
cb: extern fn(xcommand_handle: i32, err: ErrorCode)) -> ErrorCode {
unimplemented!();
}