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
37
38
39
40
41
42
43
use super::*;

use {CString, Error, CommandHandle, PoolHandle};

extern {

    #[no_mangle]
    pub fn indy_create_pool_ledger_config(command_handle: CommandHandle,
                                          config_name: CString,
                                          config: CString,
                                          cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_open_pool_ledger(command_handle: CommandHandle,
                                 config_name: CString,
                                 config: CString,
                                 cb: Option<ResponseI32CB>) -> Error;

    #[no_mangle]
    pub fn indy_refresh_pool_ledger(command_handle: CommandHandle,
                                    handle: PoolHandle,
                                    cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_list_pools(command_handle: CommandHandle,
                           cb: Option<ResponseStringCB>) -> Error;

    #[no_mangle]
    pub fn indy_close_pool_ledger(command_handle: CommandHandle,
                                  handle: PoolHandle,
                                  cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_delete_pool_ledger_config(command_handle: CommandHandle,
                                          config_name: CString,
                                          cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_set_protocol_version(command_handle: CommandHandle,
                                     protocol_version: usize,
                                     cb: Option<ResponseEmptyCB>) -> Error;
}