Skip to main content

indy_sys/
non_secrets.rs

1use super::*;
2
3use {CString, Error, CommandHandle, WalletHandle};
4
5extern {
6
7    #[no_mangle]
8    pub fn indy_add_wallet_record(command_handle: CommandHandle,
9                                  wallet_handle: WalletHandle,
10                                  type_: CString,
11                                  id: CString,
12                                  value: CString,
13                                  tags_json: CString,
14                                  cb: Option<ResponseEmptyCB>) -> Error;
15
16    #[no_mangle]
17    pub fn indy_update_wallet_record_value(command_handle: CommandHandle,
18                                           wallet_handle: WalletHandle,
19                                           type_: CString,
20                                           id: CString,
21                                           value: CString,
22                                           cb: Option<ResponseEmptyCB>) -> Error;
23
24    #[no_mangle]
25    pub fn indy_update_wallet_record_tags(command_handle: CommandHandle,
26                                          wallet_handle: WalletHandle,
27                                          type_: CString,
28                                          id: CString,
29                                          tags_json: CString,
30                                          cb: Option<ResponseEmptyCB>) -> Error;
31
32    #[no_mangle]
33    pub fn indy_add_wallet_record_tags(command_handle: CommandHandle,
34                                       wallet_handle: WalletHandle,
35                                       type_: CString,
36                                       id: CString,
37                                       tags_json: CString,
38                                       cb: Option<ResponseEmptyCB>) -> Error;
39
40    #[no_mangle]
41    pub fn indy_delete_wallet_record_tags(command_handle: CommandHandle,
42                                          wallet_handle: WalletHandle,
43                                          type_: CString,
44                                          id: CString,
45                                          tag_names_json: CString,
46                                          cb: Option<ResponseEmptyCB>) -> Error;
47
48    #[no_mangle]
49    pub fn indy_delete_wallet_record(command_handle: CommandHandle,
50                                     wallet_handle: WalletHandle,
51                                     type_: CString,
52                                     id: CString,
53                                     cb: Option<ResponseEmptyCB>) -> Error;
54
55    #[no_mangle]
56    pub fn indy_get_wallet_record(command_handle: CommandHandle,
57                                  wallet_handle: WalletHandle,
58                                  type_: CString,
59                                  id: CString,
60                                  options_json: CString,
61                                  cb: Option<ResponseStringCB>) -> Error;
62
63    #[no_mangle]
64    pub fn indy_open_wallet_search(command_handle: CommandHandle,
65                                   wallet_handle: WalletHandle,
66                                   type_: CString,
67                                   query_json: CString,
68                                   options_json: CString,
69                                   cb: Option<ResponseI32CB>) -> Error;
70
71    #[no_mangle]
72    pub fn indy_fetch_wallet_search_next_records(command_handle: CommandHandle,
73                                                 wallet_handle: WalletHandle,
74                                                 wallet_search_handle: SearchHandle,
75                                                 count: usize,
76                                                 cb: Option<ResponseStringCB>) -> Error;
77
78    #[no_mangle]
79    pub fn indy_close_wallet_search(command_handle: CommandHandle,
80                                    wallet_search_handle: SearchHandle,
81                                    cb: Option<ResponseEmptyCB>) -> Error;
82}