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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
use super::*;

use {CString, Error, Handle};

extern {

    #[no_mangle]
    pub fn indy_add_wallet_record(command_handle: Handle,
                                  wallet_handle: Handle,
                                  type_: CString,
                                  id: CString,
                                  value: CString,
                                  tags_json: CString,
                                  cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_update_wallet_record_value(command_handle: Handle,
                                           wallet_handle: Handle,
                                           type_: CString,
                                           id: CString,
                                           value: CString,
                                           cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_update_wallet_record_tags(command_handle: Handle,
                                          wallet_handle: Handle,
                                          type_: CString,
                                          id: CString,
                                          tags_json: CString,
                                          cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_add_wallet_record_tags(command_handle: Handle,
                                       wallet_handle: Handle,
                                       type_: CString,
                                       id: CString,
                                       tags_json: CString,
                                       cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_delete_wallet_record_tags(command_handle: Handle,
                                          wallet_handle: Handle,
                                          type_: CString,
                                          id: CString,
                                          tag_names_json: CString,
                                          cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_delete_wallet_record(command_handle: Handle,
                                     wallet_handle: Handle,
                                     type_: CString,
                                     id: CString,
                                     cb: Option<ResponseEmptyCB>) -> Error;

    #[no_mangle]
    pub fn indy_get_wallet_record(command_handle: Handle,
                                  wallet_handle: Handle,
                                  type_: CString,
                                  id: CString,
                                  options_json: CString,
                                  cb: Option<ResponseStringCB>) -> Error;

    #[no_mangle]
    pub fn indy_open_wallet_search(command_handle: Handle,
                                   wallet_handle: Handle,
                                   type_: CString,
                                   query_json: CString,
                                   options_json: CString,
                                   cb: Option<ResponseI32CB>) -> Error;

    #[no_mangle]
    pub fn indy_fetch_wallet_search_next_records(command_handle: Handle,
                                                 wallet_handle: Handle,
                                                 wallet_search_handle: Handle,
                                                 count: usize,
                                                 cb: Option<ResponseStringCB>) -> Error;

    #[no_mangle]
    pub fn indy_close_wallet_search(command_handle: Handle,
                                    wallet_search_handle: Handle,
                                    cb: Option<ResponseEmptyCB>) -> Error;
}