@apollohg/react-native-prose-editor 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +160 -0
  2. package/README.md +143 -0
  3. package/android/build.gradle +39 -0
  4. package/android/src/main/assets/editor-icons/MaterialIcons.json +2236 -0
  5. package/android/src/main/assets/editor-icons/MaterialIcons.ttf +0 -0
  6. package/android/src/main/java/com/apollohg/editor/EditorAddons.kt +131 -0
  7. package/android/src/main/java/com/apollohg/editor/EditorEditText.kt +1057 -0
  8. package/android/src/main/java/com/apollohg/editor/EditorHeightBehavior.kt +14 -0
  9. package/android/src/main/java/com/apollohg/editor/EditorInputConnection.kt +191 -0
  10. package/android/src/main/java/com/apollohg/editor/EditorTheme.kt +325 -0
  11. package/android/src/main/java/com/apollohg/editor/NativeEditorExpoView.kt +647 -0
  12. package/android/src/main/java/com/apollohg/editor/NativeEditorModule.kt +257 -0
  13. package/android/src/main/java/com/apollohg/editor/NativeToolbar.kt +714 -0
  14. package/android/src/main/java/com/apollohg/editor/PositionBridge.kt +76 -0
  15. package/android/src/main/java/com/apollohg/editor/RenderBridge.kt +1044 -0
  16. package/android/src/main/java/com/apollohg/editor/RichTextEditorView.kt +211 -0
  17. package/expo-module.config.json +9 -0
  18. package/ios/EditorAddons.swift +228 -0
  19. package/ios/EditorCore.xcframework/Info.plist +44 -0
  20. package/ios/EditorCore.xcframework/ios-arm64/libeditor_core.a +0 -0
  21. package/ios/EditorCore.xcframework/ios-arm64_x86_64-simulator/libeditor_core.a +0 -0
  22. package/ios/EditorLayoutManager.swift +254 -0
  23. package/ios/EditorTheme.swift +372 -0
  24. package/ios/Generated_editor_core.swift +1143 -0
  25. package/ios/NativeEditorExpoView.swift +1417 -0
  26. package/ios/NativeEditorModule.swift +263 -0
  27. package/ios/PositionBridge.swift +278 -0
  28. package/ios/ReactNativeProseEditor.podspec +49 -0
  29. package/ios/RenderBridge.swift +825 -0
  30. package/ios/RichTextEditorView.swift +1559 -0
  31. package/ios/editor_coreFFI/editor_coreFFI.h +1014 -0
  32. package/ios/editor_coreFFI/module.modulemap +7 -0
  33. package/ios/editor_coreFFI.h +904 -0
  34. package/ios/editor_coreFFI.modulemap +7 -0
  35. package/package.json +66 -0
  36. package/rust/android/arm64-v8a/libeditor_core.so +0 -0
  37. package/rust/android/armeabi-v7a/libeditor_core.so +0 -0
  38. package/rust/android/x86_64/libeditor_core.so +0 -0
  39. package/rust/bindings/kotlin/uniffi/editor_core/editor_core.kt +2014 -0
  40. package/src/EditorTheme.ts +130 -0
  41. package/src/EditorToolbar.tsx +620 -0
  42. package/src/NativeEditorBridge.ts +607 -0
  43. package/src/NativeRichTextEditor.tsx +951 -0
  44. package/src/addons.ts +158 -0
  45. package/src/index.ts +63 -0
  46. package/src/schemas.ts +153 -0
  47. package/src/useNativeEditor.ts +173 -0
@@ -0,0 +1,904 @@
1
+ // This file was autogenerated by some hot garbage in the `uniffi` crate.
2
+ // Trust me, you don't want to mess with it!
3
+
4
+ #pragma once
5
+
6
+ #include <stdbool.h>
7
+ #include <stddef.h>
8
+ #include <stdint.h>
9
+
10
+ // The following structs are used to implement the lowest level
11
+ // of the FFI, and thus useful to multiple uniffied crates.
12
+ // We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
13
+ #ifdef UNIFFI_SHARED_H
14
+ // We also try to prevent mixing versions of shared uniffi header structs.
15
+ // If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
16
+ #ifndef UNIFFI_SHARED_HEADER_V4
17
+ #error Combining helper code from multiple versions of uniffi is not supported
18
+ #endif // ndef UNIFFI_SHARED_HEADER_V4
19
+ #else
20
+ #define UNIFFI_SHARED_H
21
+ #define UNIFFI_SHARED_HEADER_V4
22
+ // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
23
+ // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
24
+
25
+ typedef struct RustBuffer
26
+ {
27
+ uint64_t capacity;
28
+ uint64_t len;
29
+ uint8_t *_Nullable data;
30
+ } RustBuffer;
31
+
32
+ typedef struct ForeignBytes
33
+ {
34
+ int32_t len;
35
+ const uint8_t *_Nullable data;
36
+ } ForeignBytes;
37
+
38
+ // Error definitions
39
+ typedef struct RustCallStatus {
40
+ int8_t code;
41
+ RustBuffer errorBuf;
42
+ } RustCallStatus;
43
+
44
+ // ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
45
+ // ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
46
+ #endif // def UNIFFI_SHARED_H
47
+ #ifndef UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
48
+ #define UNIFFI_FFIDEF_RUST_FUTURE_CONTINUATION_CALLBACK
49
+ typedef void (*UniffiRustFutureContinuationCallback)(uint64_t, int8_t
50
+ );
51
+
52
+ #endif
53
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_FREE
54
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_FREE
55
+ typedef void (*UniffiForeignFutureFree)(uint64_t
56
+ );
57
+
58
+ #endif
59
+ #ifndef UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
60
+ #define UNIFFI_FFIDEF_CALLBACK_INTERFACE_FREE
61
+ typedef void (*UniffiCallbackInterfaceFree)(uint64_t
62
+ );
63
+
64
+ #endif
65
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE
66
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE
67
+ typedef struct UniffiForeignFuture {
68
+ uint64_t handle;
69
+ UniffiForeignFutureFree _Nonnull free;
70
+ } UniffiForeignFuture;
71
+
72
+ #endif
73
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U8
74
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U8
75
+ typedef struct UniffiForeignFutureStructU8 {
76
+ uint8_t returnValue;
77
+ RustCallStatus callStatus;
78
+ } UniffiForeignFutureStructU8;
79
+
80
+ #endif
81
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
82
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U8
83
+ typedef void (*UniffiForeignFutureCompleteU8)(uint64_t, UniffiForeignFutureStructU8
84
+ );
85
+
86
+ #endif
87
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I8
88
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I8
89
+ typedef struct UniffiForeignFutureStructI8 {
90
+ int8_t returnValue;
91
+ RustCallStatus callStatus;
92
+ } UniffiForeignFutureStructI8;
93
+
94
+ #endif
95
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
96
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I8
97
+ typedef void (*UniffiForeignFutureCompleteI8)(uint64_t, UniffiForeignFutureStructI8
98
+ );
99
+
100
+ #endif
101
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U16
102
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U16
103
+ typedef struct UniffiForeignFutureStructU16 {
104
+ uint16_t returnValue;
105
+ RustCallStatus callStatus;
106
+ } UniffiForeignFutureStructU16;
107
+
108
+ #endif
109
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
110
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U16
111
+ typedef void (*UniffiForeignFutureCompleteU16)(uint64_t, UniffiForeignFutureStructU16
112
+ );
113
+
114
+ #endif
115
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I16
116
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I16
117
+ typedef struct UniffiForeignFutureStructI16 {
118
+ int16_t returnValue;
119
+ RustCallStatus callStatus;
120
+ } UniffiForeignFutureStructI16;
121
+
122
+ #endif
123
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
124
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I16
125
+ typedef void (*UniffiForeignFutureCompleteI16)(uint64_t, UniffiForeignFutureStructI16
126
+ );
127
+
128
+ #endif
129
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U32
130
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U32
131
+ typedef struct UniffiForeignFutureStructU32 {
132
+ uint32_t returnValue;
133
+ RustCallStatus callStatus;
134
+ } UniffiForeignFutureStructU32;
135
+
136
+ #endif
137
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
138
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U32
139
+ typedef void (*UniffiForeignFutureCompleteU32)(uint64_t, UniffiForeignFutureStructU32
140
+ );
141
+
142
+ #endif
143
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I32
144
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I32
145
+ typedef struct UniffiForeignFutureStructI32 {
146
+ int32_t returnValue;
147
+ RustCallStatus callStatus;
148
+ } UniffiForeignFutureStructI32;
149
+
150
+ #endif
151
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
152
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I32
153
+ typedef void (*UniffiForeignFutureCompleteI32)(uint64_t, UniffiForeignFutureStructI32
154
+ );
155
+
156
+ #endif
157
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U64
158
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_U64
159
+ typedef struct UniffiForeignFutureStructU64 {
160
+ uint64_t returnValue;
161
+ RustCallStatus callStatus;
162
+ } UniffiForeignFutureStructU64;
163
+
164
+ #endif
165
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
166
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_U64
167
+ typedef void (*UniffiForeignFutureCompleteU64)(uint64_t, UniffiForeignFutureStructU64
168
+ );
169
+
170
+ #endif
171
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I64
172
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_I64
173
+ typedef struct UniffiForeignFutureStructI64 {
174
+ int64_t returnValue;
175
+ RustCallStatus callStatus;
176
+ } UniffiForeignFutureStructI64;
177
+
178
+ #endif
179
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
180
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_I64
181
+ typedef void (*UniffiForeignFutureCompleteI64)(uint64_t, UniffiForeignFutureStructI64
182
+ );
183
+
184
+ #endif
185
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F32
186
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F32
187
+ typedef struct UniffiForeignFutureStructF32 {
188
+ float returnValue;
189
+ RustCallStatus callStatus;
190
+ } UniffiForeignFutureStructF32;
191
+
192
+ #endif
193
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
194
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F32
195
+ typedef void (*UniffiForeignFutureCompleteF32)(uint64_t, UniffiForeignFutureStructF32
196
+ );
197
+
198
+ #endif
199
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F64
200
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_F64
201
+ typedef struct UniffiForeignFutureStructF64 {
202
+ double returnValue;
203
+ RustCallStatus callStatus;
204
+ } UniffiForeignFutureStructF64;
205
+
206
+ #endif
207
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
208
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_F64
209
+ typedef void (*UniffiForeignFutureCompleteF64)(uint64_t, UniffiForeignFutureStructF64
210
+ );
211
+
212
+ #endif
213
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_POINTER
214
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_POINTER
215
+ typedef struct UniffiForeignFutureStructPointer {
216
+ void*_Nonnull returnValue;
217
+ RustCallStatus callStatus;
218
+ } UniffiForeignFutureStructPointer;
219
+
220
+ #endif
221
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_POINTER
222
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_POINTER
223
+ typedef void (*UniffiForeignFutureCompletePointer)(uint64_t, UniffiForeignFutureStructPointer
224
+ );
225
+
226
+ #endif
227
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_RUST_BUFFER
228
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_RUST_BUFFER
229
+ typedef struct UniffiForeignFutureStructRustBuffer {
230
+ RustBuffer returnValue;
231
+ RustCallStatus callStatus;
232
+ } UniffiForeignFutureStructRustBuffer;
233
+
234
+ #endif
235
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
236
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER
237
+ typedef void (*UniffiForeignFutureCompleteRustBuffer)(uint64_t, UniffiForeignFutureStructRustBuffer
238
+ );
239
+
240
+ #endif
241
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_VOID
242
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_STRUCT_VOID
243
+ typedef struct UniffiForeignFutureStructVoid {
244
+ RustCallStatus callStatus;
245
+ } UniffiForeignFutureStructVoid;
246
+
247
+ #endif
248
+ #ifndef UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
249
+ #define UNIFFI_FFIDEF_FOREIGN_FUTURE_COMPLETE_VOID
250
+ typedef void (*UniffiForeignFutureCompleteVoid)(uint64_t, UniffiForeignFutureStructVoid
251
+ );
252
+
253
+ #endif
254
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CAN_REDO
255
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CAN_REDO
256
+ int8_t uniffi_editor_core_fn_func_editor_can_redo(uint64_t id, RustCallStatus *_Nonnull out_status
257
+ );
258
+ #endif
259
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CAN_UNDO
260
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CAN_UNDO
261
+ int8_t uniffi_editor_core_fn_func_editor_can_undo(uint64_t id, RustCallStatus *_Nonnull out_status
262
+ );
263
+ #endif
264
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CORE_VERSION
265
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CORE_VERSION
266
+ RustBuffer uniffi_editor_core_fn_func_editor_core_version(RustCallStatus *_Nonnull out_status
267
+
268
+ );
269
+ #endif
270
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CREATE
271
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_CREATE
272
+ uint64_t uniffi_editor_core_fn_func_editor_create(RustBuffer config_json, RustCallStatus *_Nonnull out_status
273
+ );
274
+ #endif
275
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DELETE_AND_SPLIT_SCALAR
276
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DELETE_AND_SPLIT_SCALAR
277
+ RustBuffer uniffi_editor_core_fn_func_editor_delete_and_split_scalar(uint64_t id, uint32_t scalar_from, uint32_t scalar_to, RustCallStatus *_Nonnull out_status
278
+ );
279
+ #endif
280
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DELETE_RANGE
281
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DELETE_RANGE
282
+ RustBuffer uniffi_editor_core_fn_func_editor_delete_range(uint64_t id, uint32_t from, uint32_t to, RustCallStatus *_Nonnull out_status
283
+ );
284
+ #endif
285
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DELETE_SCALAR_RANGE
286
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DELETE_SCALAR_RANGE
287
+ RustBuffer uniffi_editor_core_fn_func_editor_delete_scalar_range(uint64_t id, uint32_t scalar_from, uint32_t scalar_to, RustCallStatus *_Nonnull out_status
288
+ );
289
+ #endif
290
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DESTROY
291
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DESTROY
292
+ void uniffi_editor_core_fn_func_editor_destroy(uint64_t id, RustCallStatus *_Nonnull out_status
293
+ );
294
+ #endif
295
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DOC_TO_SCALAR
296
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_DOC_TO_SCALAR
297
+ uint32_t uniffi_editor_core_fn_func_editor_doc_to_scalar(uint64_t id, uint32_t doc_pos, RustCallStatus *_Nonnull out_status
298
+ );
299
+ #endif
300
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_GET_CURRENT_STATE
301
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_GET_CURRENT_STATE
302
+ RustBuffer uniffi_editor_core_fn_func_editor_get_current_state(uint64_t id, RustCallStatus *_Nonnull out_status
303
+ );
304
+ #endif
305
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_GET_HTML
306
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_GET_HTML
307
+ RustBuffer uniffi_editor_core_fn_func_editor_get_html(uint64_t id, RustCallStatus *_Nonnull out_status
308
+ );
309
+ #endif
310
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_GET_JSON
311
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_GET_JSON
312
+ RustBuffer uniffi_editor_core_fn_func_editor_get_json(uint64_t id, RustCallStatus *_Nonnull out_status
313
+ );
314
+ #endif
315
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_GET_SELECTION
316
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_GET_SELECTION
317
+ RustBuffer uniffi_editor_core_fn_func_editor_get_selection(uint64_t id, RustCallStatus *_Nonnull out_status
318
+ );
319
+ #endif
320
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_CONTENT_HTML
321
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_CONTENT_HTML
322
+ RustBuffer uniffi_editor_core_fn_func_editor_insert_content_html(uint64_t id, RustBuffer html, RustCallStatus *_Nonnull out_status
323
+ );
324
+ #endif
325
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_CONTENT_JSON
326
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_CONTENT_JSON
327
+ RustBuffer uniffi_editor_core_fn_func_editor_insert_content_json(uint64_t id, RustBuffer json, RustCallStatus *_Nonnull out_status
328
+ );
329
+ #endif
330
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_NODE
331
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_NODE
332
+ RustBuffer uniffi_editor_core_fn_func_editor_insert_node(uint64_t id, RustBuffer node_type, RustCallStatus *_Nonnull out_status
333
+ );
334
+ #endif
335
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_TEXT
336
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_TEXT
337
+ RustBuffer uniffi_editor_core_fn_func_editor_insert_text(uint64_t id, uint32_t pos, RustBuffer text, RustCallStatus *_Nonnull out_status
338
+ );
339
+ #endif
340
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_TEXT_SCALAR
341
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_INSERT_TEXT_SCALAR
342
+ RustBuffer uniffi_editor_core_fn_func_editor_insert_text_scalar(uint64_t id, uint32_t scalar_pos, RustBuffer text, RustCallStatus *_Nonnull out_status
343
+ );
344
+ #endif
345
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_REDO
346
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_REDO
347
+ RustBuffer uniffi_editor_core_fn_func_editor_redo(uint64_t id, RustCallStatus *_Nonnull out_status
348
+ );
349
+ #endif
350
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_REPLACE_HTML
351
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_REPLACE_HTML
352
+ RustBuffer uniffi_editor_core_fn_func_editor_replace_html(uint64_t id, RustBuffer html, RustCallStatus *_Nonnull out_status
353
+ );
354
+ #endif
355
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_REPLACE_JSON
356
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_REPLACE_JSON
357
+ RustBuffer uniffi_editor_core_fn_func_editor_replace_json(uint64_t id, RustBuffer json, RustCallStatus *_Nonnull out_status
358
+ );
359
+ #endif
360
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_REPLACE_TEXT_SCALAR
361
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_REPLACE_TEXT_SCALAR
362
+ RustBuffer uniffi_editor_core_fn_func_editor_replace_text_scalar(uint64_t id, uint32_t scalar_from, uint32_t scalar_to, RustBuffer text, RustCallStatus *_Nonnull out_status
363
+ );
364
+ #endif
365
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SCALAR_TO_DOC
366
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SCALAR_TO_DOC
367
+ uint32_t uniffi_editor_core_fn_func_editor_scalar_to_doc(uint64_t id, uint32_t scalar, RustCallStatus *_Nonnull out_status
368
+ );
369
+ #endif
370
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_HTML
371
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_HTML
372
+ RustBuffer uniffi_editor_core_fn_func_editor_set_html(uint64_t id, RustBuffer html, RustCallStatus *_Nonnull out_status
373
+ );
374
+ #endif
375
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_JSON
376
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_JSON
377
+ RustBuffer uniffi_editor_core_fn_func_editor_set_json(uint64_t id, RustBuffer json, RustCallStatus *_Nonnull out_status
378
+ );
379
+ #endif
380
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_SELECTION
381
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_SELECTION
382
+ void uniffi_editor_core_fn_func_editor_set_selection(uint64_t id, uint32_t anchor, uint32_t head, RustCallStatus *_Nonnull out_status
383
+ );
384
+ #endif
385
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_SELECTION_SCALAR
386
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SET_SELECTION_SCALAR
387
+ void uniffi_editor_core_fn_func_editor_set_selection_scalar(uint64_t id, uint32_t scalar_anchor, uint32_t scalar_head, RustCallStatus *_Nonnull out_status
388
+ );
389
+ #endif
390
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SPLIT_BLOCK
391
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SPLIT_BLOCK
392
+ RustBuffer uniffi_editor_core_fn_func_editor_split_block(uint64_t id, uint32_t pos, RustCallStatus *_Nonnull out_status
393
+ );
394
+ #endif
395
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SPLIT_BLOCK_SCALAR
396
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_SPLIT_BLOCK_SCALAR
397
+ RustBuffer uniffi_editor_core_fn_func_editor_split_block_scalar(uint64_t id, uint32_t scalar_pos, RustCallStatus *_Nonnull out_status
398
+ );
399
+ #endif
400
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_TOGGLE_MARK
401
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_TOGGLE_MARK
402
+ RustBuffer uniffi_editor_core_fn_func_editor_toggle_mark(uint64_t id, RustBuffer mark_name, RustCallStatus *_Nonnull out_status
403
+ );
404
+ #endif
405
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNDO
406
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNDO
407
+ RustBuffer uniffi_editor_core_fn_func_editor_undo(uint64_t id, RustCallStatus *_Nonnull out_status
408
+ );
409
+ #endif
410
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNWRAP_FROM_LIST
411
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_UNWRAP_FROM_LIST
412
+ RustBuffer uniffi_editor_core_fn_func_editor_unwrap_from_list(uint64_t id, RustCallStatus *_Nonnull out_status
413
+ );
414
+ #endif
415
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_WRAP_IN_LIST
416
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_FN_FUNC_EDITOR_WRAP_IN_LIST
417
+ RustBuffer uniffi_editor_core_fn_func_editor_wrap_in_list(uint64_t id, RustBuffer list_type, RustCallStatus *_Nonnull out_status
418
+ );
419
+ #endif
420
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUSTBUFFER_ALLOC
421
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUSTBUFFER_ALLOC
422
+ RustBuffer ffi_editor_core_rustbuffer_alloc(uint64_t size, RustCallStatus *_Nonnull out_status
423
+ );
424
+ #endif
425
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUSTBUFFER_FROM_BYTES
426
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUSTBUFFER_FROM_BYTES
427
+ RustBuffer ffi_editor_core_rustbuffer_from_bytes(ForeignBytes bytes, RustCallStatus *_Nonnull out_status
428
+ );
429
+ #endif
430
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUSTBUFFER_FREE
431
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUSTBUFFER_FREE
432
+ void ffi_editor_core_rustbuffer_free(RustBuffer buf, RustCallStatus *_Nonnull out_status
433
+ );
434
+ #endif
435
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUSTBUFFER_RESERVE
436
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUSTBUFFER_RESERVE
437
+ RustBuffer ffi_editor_core_rustbuffer_reserve(RustBuffer buf, uint64_t additional, RustCallStatus *_Nonnull out_status
438
+ );
439
+ #endif
440
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_U8
441
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_U8
442
+ void ffi_editor_core_rust_future_poll_u8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
443
+ );
444
+ #endif
445
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_U8
446
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_U8
447
+ void ffi_editor_core_rust_future_cancel_u8(uint64_t handle
448
+ );
449
+ #endif
450
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_U8
451
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_U8
452
+ void ffi_editor_core_rust_future_free_u8(uint64_t handle
453
+ );
454
+ #endif
455
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_U8
456
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_U8
457
+ uint8_t ffi_editor_core_rust_future_complete_u8(uint64_t handle, RustCallStatus *_Nonnull out_status
458
+ );
459
+ #endif
460
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_I8
461
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_I8
462
+ void ffi_editor_core_rust_future_poll_i8(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
463
+ );
464
+ #endif
465
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_I8
466
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_I8
467
+ void ffi_editor_core_rust_future_cancel_i8(uint64_t handle
468
+ );
469
+ #endif
470
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_I8
471
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_I8
472
+ void ffi_editor_core_rust_future_free_i8(uint64_t handle
473
+ );
474
+ #endif
475
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_I8
476
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_I8
477
+ int8_t ffi_editor_core_rust_future_complete_i8(uint64_t handle, RustCallStatus *_Nonnull out_status
478
+ );
479
+ #endif
480
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_U16
481
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_U16
482
+ void ffi_editor_core_rust_future_poll_u16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
483
+ );
484
+ #endif
485
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_U16
486
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_U16
487
+ void ffi_editor_core_rust_future_cancel_u16(uint64_t handle
488
+ );
489
+ #endif
490
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_U16
491
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_U16
492
+ void ffi_editor_core_rust_future_free_u16(uint64_t handle
493
+ );
494
+ #endif
495
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_U16
496
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_U16
497
+ uint16_t ffi_editor_core_rust_future_complete_u16(uint64_t handle, RustCallStatus *_Nonnull out_status
498
+ );
499
+ #endif
500
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_I16
501
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_I16
502
+ void ffi_editor_core_rust_future_poll_i16(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
503
+ );
504
+ #endif
505
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_I16
506
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_I16
507
+ void ffi_editor_core_rust_future_cancel_i16(uint64_t handle
508
+ );
509
+ #endif
510
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_I16
511
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_I16
512
+ void ffi_editor_core_rust_future_free_i16(uint64_t handle
513
+ );
514
+ #endif
515
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_I16
516
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_I16
517
+ int16_t ffi_editor_core_rust_future_complete_i16(uint64_t handle, RustCallStatus *_Nonnull out_status
518
+ );
519
+ #endif
520
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_U32
521
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_U32
522
+ void ffi_editor_core_rust_future_poll_u32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
523
+ );
524
+ #endif
525
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_U32
526
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_U32
527
+ void ffi_editor_core_rust_future_cancel_u32(uint64_t handle
528
+ );
529
+ #endif
530
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_U32
531
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_U32
532
+ void ffi_editor_core_rust_future_free_u32(uint64_t handle
533
+ );
534
+ #endif
535
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_U32
536
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_U32
537
+ uint32_t ffi_editor_core_rust_future_complete_u32(uint64_t handle, RustCallStatus *_Nonnull out_status
538
+ );
539
+ #endif
540
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_I32
541
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_I32
542
+ void ffi_editor_core_rust_future_poll_i32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
543
+ );
544
+ #endif
545
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_I32
546
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_I32
547
+ void ffi_editor_core_rust_future_cancel_i32(uint64_t handle
548
+ );
549
+ #endif
550
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_I32
551
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_I32
552
+ void ffi_editor_core_rust_future_free_i32(uint64_t handle
553
+ );
554
+ #endif
555
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_I32
556
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_I32
557
+ int32_t ffi_editor_core_rust_future_complete_i32(uint64_t handle, RustCallStatus *_Nonnull out_status
558
+ );
559
+ #endif
560
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_U64
561
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_U64
562
+ void ffi_editor_core_rust_future_poll_u64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
563
+ );
564
+ #endif
565
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_U64
566
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_U64
567
+ void ffi_editor_core_rust_future_cancel_u64(uint64_t handle
568
+ );
569
+ #endif
570
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_U64
571
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_U64
572
+ void ffi_editor_core_rust_future_free_u64(uint64_t handle
573
+ );
574
+ #endif
575
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_U64
576
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_U64
577
+ uint64_t ffi_editor_core_rust_future_complete_u64(uint64_t handle, RustCallStatus *_Nonnull out_status
578
+ );
579
+ #endif
580
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_I64
581
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_I64
582
+ void ffi_editor_core_rust_future_poll_i64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
583
+ );
584
+ #endif
585
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_I64
586
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_I64
587
+ void ffi_editor_core_rust_future_cancel_i64(uint64_t handle
588
+ );
589
+ #endif
590
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_I64
591
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_I64
592
+ void ffi_editor_core_rust_future_free_i64(uint64_t handle
593
+ );
594
+ #endif
595
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_I64
596
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_I64
597
+ int64_t ffi_editor_core_rust_future_complete_i64(uint64_t handle, RustCallStatus *_Nonnull out_status
598
+ );
599
+ #endif
600
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_F32
601
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_F32
602
+ void ffi_editor_core_rust_future_poll_f32(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
603
+ );
604
+ #endif
605
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_F32
606
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_F32
607
+ void ffi_editor_core_rust_future_cancel_f32(uint64_t handle
608
+ );
609
+ #endif
610
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_F32
611
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_F32
612
+ void ffi_editor_core_rust_future_free_f32(uint64_t handle
613
+ );
614
+ #endif
615
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_F32
616
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_F32
617
+ float ffi_editor_core_rust_future_complete_f32(uint64_t handle, RustCallStatus *_Nonnull out_status
618
+ );
619
+ #endif
620
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_F64
621
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_F64
622
+ void ffi_editor_core_rust_future_poll_f64(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
623
+ );
624
+ #endif
625
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_F64
626
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_F64
627
+ void ffi_editor_core_rust_future_cancel_f64(uint64_t handle
628
+ );
629
+ #endif
630
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_F64
631
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_F64
632
+ void ffi_editor_core_rust_future_free_f64(uint64_t handle
633
+ );
634
+ #endif
635
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_F64
636
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_F64
637
+ double ffi_editor_core_rust_future_complete_f64(uint64_t handle, RustCallStatus *_Nonnull out_status
638
+ );
639
+ #endif
640
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_POINTER
641
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_POINTER
642
+ void ffi_editor_core_rust_future_poll_pointer(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
643
+ );
644
+ #endif
645
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_POINTER
646
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_POINTER
647
+ void ffi_editor_core_rust_future_cancel_pointer(uint64_t handle
648
+ );
649
+ #endif
650
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_POINTER
651
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_POINTER
652
+ void ffi_editor_core_rust_future_free_pointer(uint64_t handle
653
+ );
654
+ #endif
655
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_POINTER
656
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_POINTER
657
+ void*_Nonnull ffi_editor_core_rust_future_complete_pointer(uint64_t handle, RustCallStatus *_Nonnull out_status
658
+ );
659
+ #endif
660
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_RUST_BUFFER
661
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_RUST_BUFFER
662
+ void ffi_editor_core_rust_future_poll_rust_buffer(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
663
+ );
664
+ #endif
665
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_RUST_BUFFER
666
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_RUST_BUFFER
667
+ void ffi_editor_core_rust_future_cancel_rust_buffer(uint64_t handle
668
+ );
669
+ #endif
670
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_RUST_BUFFER
671
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_RUST_BUFFER
672
+ void ffi_editor_core_rust_future_free_rust_buffer(uint64_t handle
673
+ );
674
+ #endif
675
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_RUST_BUFFER
676
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_RUST_BUFFER
677
+ RustBuffer ffi_editor_core_rust_future_complete_rust_buffer(uint64_t handle, RustCallStatus *_Nonnull out_status
678
+ );
679
+ #endif
680
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_VOID
681
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_POLL_VOID
682
+ void ffi_editor_core_rust_future_poll_void(uint64_t handle, UniffiRustFutureContinuationCallback _Nonnull callback, uint64_t callback_data
683
+ );
684
+ #endif
685
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_VOID
686
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_CANCEL_VOID
687
+ void ffi_editor_core_rust_future_cancel_void(uint64_t handle
688
+ );
689
+ #endif
690
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_VOID
691
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_FREE_VOID
692
+ void ffi_editor_core_rust_future_free_void(uint64_t handle
693
+ );
694
+ #endif
695
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_VOID
696
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_RUST_FUTURE_COMPLETE_VOID
697
+ void ffi_editor_core_rust_future_complete_void(uint64_t handle, RustCallStatus *_Nonnull out_status
698
+ );
699
+ #endif
700
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_CAN_REDO
701
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_CAN_REDO
702
+ uint16_t uniffi_editor_core_checksum_func_editor_can_redo(void
703
+
704
+ );
705
+ #endif
706
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_CAN_UNDO
707
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_CAN_UNDO
708
+ uint16_t uniffi_editor_core_checksum_func_editor_can_undo(void
709
+
710
+ );
711
+ #endif
712
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_CORE_VERSION
713
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_CORE_VERSION
714
+ uint16_t uniffi_editor_core_checksum_func_editor_core_version(void
715
+
716
+ );
717
+ #endif
718
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_CREATE
719
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_CREATE
720
+ uint16_t uniffi_editor_core_checksum_func_editor_create(void
721
+
722
+ );
723
+ #endif
724
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DELETE_AND_SPLIT_SCALAR
725
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DELETE_AND_SPLIT_SCALAR
726
+ uint16_t uniffi_editor_core_checksum_func_editor_delete_and_split_scalar(void
727
+
728
+ );
729
+ #endif
730
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DELETE_RANGE
731
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DELETE_RANGE
732
+ uint16_t uniffi_editor_core_checksum_func_editor_delete_range(void
733
+
734
+ );
735
+ #endif
736
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DELETE_SCALAR_RANGE
737
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DELETE_SCALAR_RANGE
738
+ uint16_t uniffi_editor_core_checksum_func_editor_delete_scalar_range(void
739
+
740
+ );
741
+ #endif
742
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DESTROY
743
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DESTROY
744
+ uint16_t uniffi_editor_core_checksum_func_editor_destroy(void
745
+
746
+ );
747
+ #endif
748
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DOC_TO_SCALAR
749
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_DOC_TO_SCALAR
750
+ uint16_t uniffi_editor_core_checksum_func_editor_doc_to_scalar(void
751
+
752
+ );
753
+ #endif
754
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_GET_CURRENT_STATE
755
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_GET_CURRENT_STATE
756
+ uint16_t uniffi_editor_core_checksum_func_editor_get_current_state(void
757
+
758
+ );
759
+ #endif
760
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_GET_HTML
761
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_GET_HTML
762
+ uint16_t uniffi_editor_core_checksum_func_editor_get_html(void
763
+
764
+ );
765
+ #endif
766
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_GET_JSON
767
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_GET_JSON
768
+ uint16_t uniffi_editor_core_checksum_func_editor_get_json(void
769
+
770
+ );
771
+ #endif
772
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_GET_SELECTION
773
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_GET_SELECTION
774
+ uint16_t uniffi_editor_core_checksum_func_editor_get_selection(void
775
+
776
+ );
777
+ #endif
778
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_CONTENT_HTML
779
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_CONTENT_HTML
780
+ uint16_t uniffi_editor_core_checksum_func_editor_insert_content_html(void
781
+
782
+ );
783
+ #endif
784
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_CONTENT_JSON
785
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_CONTENT_JSON
786
+ uint16_t uniffi_editor_core_checksum_func_editor_insert_content_json(void
787
+
788
+ );
789
+ #endif
790
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_NODE
791
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_NODE
792
+ uint16_t uniffi_editor_core_checksum_func_editor_insert_node(void
793
+
794
+ );
795
+ #endif
796
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_TEXT
797
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_TEXT
798
+ uint16_t uniffi_editor_core_checksum_func_editor_insert_text(void
799
+
800
+ );
801
+ #endif
802
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_TEXT_SCALAR
803
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_INSERT_TEXT_SCALAR
804
+ uint16_t uniffi_editor_core_checksum_func_editor_insert_text_scalar(void
805
+
806
+ );
807
+ #endif
808
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_REDO
809
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_REDO
810
+ uint16_t uniffi_editor_core_checksum_func_editor_redo(void
811
+
812
+ );
813
+ #endif
814
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_REPLACE_HTML
815
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_REPLACE_HTML
816
+ uint16_t uniffi_editor_core_checksum_func_editor_replace_html(void
817
+
818
+ );
819
+ #endif
820
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_REPLACE_JSON
821
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_REPLACE_JSON
822
+ uint16_t uniffi_editor_core_checksum_func_editor_replace_json(void
823
+
824
+ );
825
+ #endif
826
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_REPLACE_TEXT_SCALAR
827
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_REPLACE_TEXT_SCALAR
828
+ uint16_t uniffi_editor_core_checksum_func_editor_replace_text_scalar(void
829
+
830
+ );
831
+ #endif
832
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SCALAR_TO_DOC
833
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SCALAR_TO_DOC
834
+ uint16_t uniffi_editor_core_checksum_func_editor_scalar_to_doc(void
835
+
836
+ );
837
+ #endif
838
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_HTML
839
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_HTML
840
+ uint16_t uniffi_editor_core_checksum_func_editor_set_html(void
841
+
842
+ );
843
+ #endif
844
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_JSON
845
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_JSON
846
+ uint16_t uniffi_editor_core_checksum_func_editor_set_json(void
847
+
848
+ );
849
+ #endif
850
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_SELECTION
851
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_SELECTION
852
+ uint16_t uniffi_editor_core_checksum_func_editor_set_selection(void
853
+
854
+ );
855
+ #endif
856
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_SELECTION_SCALAR
857
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SET_SELECTION_SCALAR
858
+ uint16_t uniffi_editor_core_checksum_func_editor_set_selection_scalar(void
859
+
860
+ );
861
+ #endif
862
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SPLIT_BLOCK
863
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SPLIT_BLOCK
864
+ uint16_t uniffi_editor_core_checksum_func_editor_split_block(void
865
+
866
+ );
867
+ #endif
868
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SPLIT_BLOCK_SCALAR
869
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_SPLIT_BLOCK_SCALAR
870
+ uint16_t uniffi_editor_core_checksum_func_editor_split_block_scalar(void
871
+
872
+ );
873
+ #endif
874
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_TOGGLE_MARK
875
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_TOGGLE_MARK
876
+ uint16_t uniffi_editor_core_checksum_func_editor_toggle_mark(void
877
+
878
+ );
879
+ #endif
880
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNDO
881
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNDO
882
+ uint16_t uniffi_editor_core_checksum_func_editor_undo(void
883
+
884
+ );
885
+ #endif
886
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNWRAP_FROM_LIST
887
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_UNWRAP_FROM_LIST
888
+ uint16_t uniffi_editor_core_checksum_func_editor_unwrap_from_list(void
889
+
890
+ );
891
+ #endif
892
+ #ifndef UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_WRAP_IN_LIST
893
+ #define UNIFFI_FFIDEF_UNIFFI_EDITOR_CORE_CHECKSUM_FUNC_EDITOR_WRAP_IN_LIST
894
+ uint16_t uniffi_editor_core_checksum_func_editor_wrap_in_list(void
895
+
896
+ );
897
+ #endif
898
+ #ifndef UNIFFI_FFIDEF_FFI_EDITOR_CORE_UNIFFI_CONTRACT_VERSION
899
+ #define UNIFFI_FFIDEF_FFI_EDITOR_CORE_UNIFFI_CONTRACT_VERSION
900
+ uint32_t ffi_editor_core_uniffi_contract_version(void
901
+
902
+ );
903
+ #endif
904
+