1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use super::*;

use {CString, Error, CommandHandle, WalletHandle, PoolHandle};

extern {

    #[no_mangle]
    pub fn indy_get_schema(command_handle: CommandHandle,
                           pool_handle: PoolHandle,
                           wallet_handle: WalletHandle,
                           submitter_did: CString,
                           id: CString,
                           options_json: CString,
                           cb: Option<ResponseStringCB>) -> Error;

    #[no_mangle]
    pub fn indy_get_cred_def(command_handle: CommandHandle,
                             pool_handle: PoolHandle,
                             wallet_handle: WalletHandle,
                             submitter_did: CString,
                             id: CString,
                             options_json: CString,
                             cb: Option<ResponseStringCB>) -> Error;

    #[no_mangle]
    pub fn indy_purge_schema_cache(command_handle: CommandHandle,
                                   wallet_handle: WalletHandle,
                                   options_json: CString,
                                   cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_purge_cred_def_cache(command_handle: CommandHandle,
                                     wallet_handle: WalletHandle,
                                     options_json: CString,
                                     cb: Option<ResponseEmptyCB>) -> Error;
}