| 6 | extern "C" { |
| 7 | #endif |
| 8 |
| 9 | #ifndef UNIFFI_CPP_INTERNALSTRUCTS |
| 10 | #define UNIFFI_CPP_INTERNALSTRUCTS |
| 11 | struct ForeignBytes { |
| 12 | int32_t len; |
| 13 | uint8_t *data; |
| 14 | }; |
| 15 |
| 16 | struct RustBuffer { |
| 17 | uint64_t capacity; |
| 18 | uint64_t len; |
| 19 | uint8_t *data; |
| 20 | }; |
| 21 |
| 22 | struct RustCallStatus { |
| 23 | int8_t code; |
| 24 | RustBuffer error_buf; |
| 25 | }; |
| 26 |
| 27 | #endif |
| 28 | void RustFutureContinuationCallback( |
| 29 | uint64_t data,int8_t poll_result |
| 30 | ); |
| 31 | void ForeignFutureDroppedCallback( |
| 32 | uint64_t handle |
| 33 | ); |
| 34 | void CallbackInterfaceFree( |
| 35 | uint64_t handle |
| 36 | ); |
| 37 | uint64_t CallbackInterfaceClone( |
| 38 | uint64_t handle |
| 39 | ); |
| 40 | struct UniffiForeignFutureDroppedCallbackStruct { |
| 41 | uint64_t handle; |
| 42 | void * free; |
| 43 | }; |
| 44 | struct UniffiForeignFutureResultU8 { |
| 45 | uint8_t return_value; |
| 46 | RustCallStatus call_status; |
| 47 | }; |
| 48 | void ForeignFutureCompleteU8( |
| 49 | uint64_t callback_data,UniffiForeignFutureResultU8 result |
| 50 | ); |
| 51 | struct UniffiForeignFutureResultI8 { |
| 52 | int8_t return_value; |
| 53 | RustCallStatus call_status; |
| 54 | }; |
| 55 | void ForeignFutureCompleteI8( |
| 56 | uint64_t callback_data,UniffiForeignFutureResultI8 result |
| 57 | ); |
| 58 | struct UniffiForeignFutureResultU16 { |
| 59 | uint16_t return_value; |
| 60 | RustCallStatus call_status; |
| 61 | }; |
| 62 | void ForeignFutureCompleteU16( |
| 63 | uint64_t callback_data,UniffiForeignFutureResultU16 result |
| 64 | ); |
| 65 | struct UniffiForeignFutureResultI16 { |
| 66 | int16_t return_value; |
| 67 | RustCallStatus call_status; |
| 68 | }; |
| 69 | void ForeignFutureCompleteI16( |
| 70 | uint64_t callback_data,UniffiForeignFutureResultI16 result |
| 71 | ); |
| 72 | struct UniffiForeignFutureResultU32 { |
| 73 | uint32_t return_value; |
| 74 | RustCallStatus call_status; |
| 75 | }; |
| 76 | void ForeignFutureCompleteU32( |
| 77 | uint64_t callback_data,UniffiForeignFutureResultU32 result |
| 78 | ); |
| 79 | struct UniffiForeignFutureResultI32 { |
| 80 | int32_t return_value; |
| 81 | RustCallStatus call_status; |
| 82 | }; |
| 83 | void ForeignFutureCompleteI32( |
| 84 | uint64_t callback_data,UniffiForeignFutureResultI32 result |
| 85 | ); |
| 86 | struct UniffiForeignFutureResultU64 { |
| 87 | uint64_t return_value; |
| 88 | RustCallStatus call_status; |
| 89 | }; |
| 90 | void ForeignFutureCompleteU64( |
| 91 | uint64_t callback_data,UniffiForeignFutureResultU64 result |
| 92 | ); |
| 93 | struct UniffiForeignFutureResultI64 { |
| 94 | int64_t return_value; |
| 95 | RustCallStatus call_status; |
| 96 | }; |
| 97 | void ForeignFutureCompleteI64( |
| 98 | uint64_t callback_data,UniffiForeignFutureResultI64 result |
| 99 | ); |
| 100 | struct UniffiForeignFutureResultF32 { |
| 101 | float return_value; |
| 102 | RustCallStatus call_status; |
| 103 | }; |
| 104 | void ForeignFutureCompleteF32( |
| 105 | uint64_t callback_data,UniffiForeignFutureResultF32 result |
| 106 | ); |
| 107 | struct UniffiForeignFutureResultF64 { |
| 108 | double return_value; |
| 109 | RustCallStatus call_status; |
| 110 | }; |
| 111 | void ForeignFutureCompleteF64( |
| 112 | uint64_t callback_data,UniffiForeignFutureResultF64 result |
| 113 | ); |
| 114 | struct UniffiForeignFutureResultRustBuffer { |
| 115 | RustBuffer return_value; |
| 116 | RustCallStatus call_status; |
| 117 | }; |
| 118 | void ForeignFutureCompleteRustBuffer( |
| 119 | uint64_t callback_data,UniffiForeignFutureResultRustBuffer result |
| 120 | ); |
| 121 | struct UniffiForeignFutureResultVoid { |
| 122 | RustCallStatus call_status; |
| 123 | }; |
| 124 | void ForeignFutureCompleteVoid( |
| 125 | uint64_t callback_data,UniffiForeignFutureResultVoid result |
| 126 | ); |
| 127 | int8_t uniffi_gram_wallet_fn_func_is_valid_cell_boc(RustBuffer boc, RustCallStatus *out_status); |
| 128 | RustBuffer uniffi_gram_wallet_fn_func_message_body_hash(RustBuffer boc, RustCallStatus *out_status); |
| 129 | RustBuffer uniffi_gram_wallet_fn_func_gram_ton_connect_crypto(RustBuffer phrase, RustBuffer parameters, RustCallStatus *out_status); |
| 130 | RustBuffer ffi_gram_wallet_rustbuffer_alloc(uint64_t size, RustCallStatus *out_status); |
| 131 | RustBuffer ffi_gram_wallet_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *out_status); |
| 132 | void ffi_gram_wallet_rustbuffer_free(RustBuffer buf, RustCallStatus *out_status); |
| 133 | RustBuffer ffi_gram_wallet_rustbuffer_reserve(RustBuffer buf, uint64_t additional, RustCallStatus *out_status); |
| 134 | void ffi_gram_wallet_rust_future_poll_u8(uint64_t handle, void * callback, uint64_t callback_data); |
| 135 | void ffi_gram_wallet_rust_future_cancel_u8(uint64_t handle); |
| 136 | void ffi_gram_wallet_rust_future_free_u8(uint64_t handle); |
| 137 | uint8_t ffi_gram_wallet_rust_future_complete_u8(uint64_t handle, RustCallStatus *out_status); |
| 138 | void ffi_gram_wallet_rust_future_poll_i8(uint64_t handle, void * callback, uint64_t callback_data); |
| 139 | void ffi_gram_wallet_rust_future_cancel_i8(uint64_t handle); |
| 140 | void ffi_gram_wallet_rust_future_free_i8(uint64_t handle); |
| 141 | int8_t ffi_gram_wallet_rust_future_complete_i8(uint64_t handle, RustCallStatus *out_status); |
| 142 | void ffi_gram_wallet_rust_future_poll_u16(uint64_t handle, void * callback, uint64_t callback_data); |
| 143 | void ffi_gram_wallet_rust_future_cancel_u16(uint64_t handle); |
| 144 | void ffi_gram_wallet_rust_future_free_u16(uint64_t handle); |
| 145 | uint16_t ffi_gram_wallet_rust_future_complete_u16(uint64_t handle, RustCallStatus *out_status); |
| 146 | void ffi_gram_wallet_rust_future_poll_i16(uint64_t handle, void * callback, uint64_t callback_data); |
| 147 | void ffi_gram_wallet_rust_future_cancel_i16(uint64_t handle); |
| 148 | void ffi_gram_wallet_rust_future_free_i16(uint64_t handle); |
| 149 | int16_t ffi_gram_wallet_rust_future_complete_i16(uint64_t handle, RustCallStatus *out_status); |
| 150 | void ffi_gram_wallet_rust_future_poll_u32(uint64_t handle, void * callback, uint64_t callback_data); |
| 151 | void ffi_gram_wallet_rust_future_cancel_u32(uint64_t handle); |
| 152 | void ffi_gram_wallet_rust_future_free_u32(uint64_t handle); |
| 153 | uint32_t ffi_gram_wallet_rust_future_complete_u32(uint64_t handle, RustCallStatus *out_status); |
| 154 | void ffi_gram_wallet_rust_future_poll_i32(uint64_t handle, void * callback, uint64_t callback_data); |
| 155 | void ffi_gram_wallet_rust_future_cancel_i32(uint64_t handle); |
| 156 | void ffi_gram_wallet_rust_future_free_i32(uint64_t handle); |
| 157 | int32_t ffi_gram_wallet_rust_future_complete_i32(uint64_t handle, RustCallStatus *out_status); |
| 158 | void ffi_gram_wallet_rust_future_poll_u64(uint64_t handle, void * callback, uint64_t callback_data); |
| 159 | void ffi_gram_wallet_rust_future_cancel_u64(uint64_t handle); |
| 160 | void ffi_gram_wallet_rust_future_free_u64(uint64_t handle); |
| 161 | uint64_t ffi_gram_wallet_rust_future_complete_u64(uint64_t handle, RustCallStatus *out_status); |
| 162 | void ffi_gram_wallet_rust_future_poll_i64(uint64_t handle, void * callback, uint64_t callback_data); |
| 163 | void ffi_gram_wallet_rust_future_cancel_i64(uint64_t handle); |
| 164 | void ffi_gram_wallet_rust_future_free_i64(uint64_t handle); |
| 165 | int64_t ffi_gram_wallet_rust_future_complete_i64(uint64_t handle, RustCallStatus *out_status); |
| 166 | void ffi_gram_wallet_rust_future_poll_f32(uint64_t handle, void * callback, uint64_t callback_data); |
| 167 | void ffi_gram_wallet_rust_future_cancel_f32(uint64_t handle); |
| 168 | void ffi_gram_wallet_rust_future_free_f32(uint64_t handle); |
| 169 | float ffi_gram_wallet_rust_future_complete_f32(uint64_t handle, RustCallStatus *out_status); |
| 170 | void ffi_gram_wallet_rust_future_poll_f64(uint64_t handle, void * callback, uint64_t callback_data); |
| 171 | void ffi_gram_wallet_rust_future_cancel_f64(uint64_t handle); |
| 172 | void ffi_gram_wallet_rust_future_free_f64(uint64_t handle); |
| 173 | double ffi_gram_wallet_rust_future_complete_f64(uint64_t handle, RustCallStatus *out_status); |
| 174 | void ffi_gram_wallet_rust_future_poll_rust_buffer(uint64_t handle, void * callback, uint64_t callback_data); |
| 175 | void ffi_gram_wallet_rust_future_cancel_rust_buffer(uint64_t handle); |
| 176 | void ffi_gram_wallet_rust_future_free_rust_buffer(uint64_t handle); |
| 177 | RustBuffer ffi_gram_wallet_rust_future_complete_rust_buffer(uint64_t handle, RustCallStatus *out_status); |
| 178 | void ffi_gram_wallet_rust_future_poll_void(uint64_t handle, void * callback, uint64_t callback_data); |
| 179 | void ffi_gram_wallet_rust_future_cancel_void(uint64_t handle); |
| 180 | void ffi_gram_wallet_rust_future_free_void(uint64_t handle); |
| 181 | void ffi_gram_wallet_rust_future_complete_void(uint64_t handle, RustCallStatus *out_status); |
| 182 | uint16_t uniffi_gram_wallet_checksum_func_is_valid_cell_boc(); |
| 183 | uint16_t uniffi_gram_wallet_checksum_func_message_body_hash(); |
| 184 | uint16_t uniffi_gram_wallet_checksum_func_gram_ton_connect_crypto(); |
| 185 | uint32_t ffi_gram_wallet_uniffi_contract_version(); |
| 186 | #ifdef __cplusplus |
| 187 | } |
| 188 | #endif |