indy_sys/
pool.rs

1use super::*;
2
3use {CString, Error, CommandHandle, PoolHandle};
4
5extern {
6
7    #[no_mangle]
8    pub fn indy_create_pool_ledger_config(command_handle: CommandHandle,
9                                          config_name: CString,
10                                          config: CString,
11                                          cb: Option<ResponseEmptyCB>) -> Error;
12
13    #[no_mangle]
14    pub fn indy_open_pool_ledger(command_handle: CommandHandle,
15                                 config_name: CString,
16                                 config: CString,
17                                 cb: Option<ResponseI32CB>) -> Error;
18
19    #[no_mangle]
20    pub fn indy_refresh_pool_ledger(command_handle: CommandHandle,
21                                    handle: PoolHandle,
22                                    cb: Option<ResponseEmptyCB>) -> Error;
23
24    #[no_mangle]
25    pub fn indy_list_pools(command_handle: CommandHandle,
26                           cb: Option<ResponseStringCB>) -> Error;
27
28    #[no_mangle]
29    pub fn indy_close_pool_ledger(command_handle: CommandHandle,
30                                  handle: PoolHandle,
31                                  cb: Option<ResponseEmptyCB>) -> Error;
32
33    #[no_mangle]
34    pub fn indy_delete_pool_ledger_config(command_handle: CommandHandle,
35                                          config_name: CString,
36                                          cb: Option<ResponseEmptyCB>) -> Error;
37
38    #[no_mangle]
39    pub fn indy_set_protocol_version(command_handle: CommandHandle,
40                                     protocol_version: usize,
41                                     cb: Option<ResponseEmptyCB>) -> Error;
42}
43