Function libindy_sys::indy_register_wallet_storage [−][src]
pub unsafe extern "C" fn indy_register_wallet_storage(
command_handle: indy_handle_t,
type_: *const c_char,
create_wallet_cb: indyCreateWalletCb,
open_wallet_cb: indyOpenWalletCb,
close_wallet_cb: indyCloseWalletCb,
delete_wallet_cb: indyDeleteWalletCb,
add_record_cb: indyWalletAddRecordCb,
update_record_value: indyWalletUpdateRecordValueCb,
update_record_tags_cb: indyWalletUpdateRecordTagsCb,
add_record_tags_cb: indyWalletAddRecordTagsCb,
delete_record_tags_cb: indyWalletDeleteRecordTagsCb,
delete_record_cb: indyWalletDeleteRecordCb,
get_record_cb: indyWalletGetRecordCb,
get_record_id_cb: indyWalletGetRecordIdCb,
get_record_type_cb: indyWalletGetRecordTypeCb,
get_record_value_cb: indyWalletGetRecordValueCb,
get_records_tags_cb: indyWalletGetRecordTagsCb,
free_record_cb: indyWalletFreeRecordCb,
get_storage_metadata_cb: indyWalletGetStorageMetadataCb,
set_storage_metadata_cb: indyWalletSetStorageMetadataCb,
free_storage_metadata_cb: indyWalletFreeStorageMetadataCb,
open_search_cb: indyWalletOpenSearchCb,
open_search_all_cb: indyWalletOpenSearchAllCb,
get_search_total_count_cb: indyWalletGetSearchTotalCountCb,
fetch_search_next_record_cb: indyWalletFetchSearchNextRecordsCb,
free_search_cb: indyWalletFreeSearchCb,
cb: indy_empty_cb
) -> indy_error_t
Registers custom wallet storage implementation.
It allows library user to provide custom wallet implementation.
#Params command_handle: Command handle to map callback to caller context. type_: Wallet type name. create: WalletType create operation handler open: WalletType open operation handler close: Wallet close operation handler delete: WalletType delete operation handler add_record: WalletType add record operation handler update_record_value: WalletType update record value operation handler update_record_tags: WalletType update record tags operation handler add_record_tags: WalletType add record tags operation handler delete_record_tags: WalletType delete record tags operation handler delete_record: WalletType delete record operation handler get_record: WalletType get record operation handler get_record_id: WalletType get record id operation handler get_record_type: WalletType get record type operation handler get_record_value: WalletType get record value operation handler get_record_tags: WalletType get record tags operation handler free_record: WalletType free record operation handler search_records: WalletType search records operation handler search_all_records: WalletType search all records operation handler get_search_total_count: WalletType get search total count operation handler fetch_search_next_record: WalletType fetch search next record operation handler free_search: WalletType free search operation handler free: Handler that allows to de-allocate strings allocated in caller code
#Returns Error code