Bug 1791851 - regenerate uniffi r=teshaq,LougeniaBailey,bdk

Differential Revision: https://phabricator.services.mozilla.com/D157980
This commit is contained in:
Mark Hammond 2022-10-25 20:03:22 +00:00
parent 0d48542497
commit cf1e2c2545
10 changed files with 1930 additions and 560 deletions

View file

@ -240,3 +240,4 @@ browser/extensions/translations/extension/
# "scaffolding" used by uniffi which isn't valid JS in its original form. # "scaffolding" used by uniffi which isn't valid JS in its original form.
toolkit/components/uniffi-bindgen-gecko-js/src/templates/js/ toolkit/components/uniffi-bindgen-gecko-js/src/templates/js/
toolkit/components/uniffi-bindgen-gecko-js/components/generated/*

File diff suppressed because it is too large Load diff

View file

@ -323,7 +323,7 @@ function add(a,b) {
FfiConverterU64.checkType("a", a); FfiConverterU64.checkType("a", a);
FfiConverterU64.checkType("b", b); FfiConverterU64.checkType("b", b);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
2, // arithmetic:arithmetic_708a_add 22, // arithmetic:arithmetic_906c_add
FfiConverterU64.lower(a), FfiConverterU64.lower(a),
FfiConverterU64.lower(b), FfiConverterU64.lower(b),
) )
@ -344,7 +344,7 @@ function sub(a,b) {
FfiConverterU64.checkType("a", a); FfiConverterU64.checkType("a", a);
FfiConverterU64.checkType("b", b); FfiConverterU64.checkType("b", b);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
3, // arithmetic:arithmetic_708a_sub 23, // arithmetic:arithmetic_906c_sub
FfiConverterU64.lower(a), FfiConverterU64.lower(a),
FfiConverterU64.lower(b), FfiConverterU64.lower(b),
) )
@ -365,7 +365,7 @@ function div(dividend,divisor) {
FfiConverterU64.checkType("dividend", dividend); FfiConverterU64.checkType("dividend", dividend);
FfiConverterU64.checkType("divisor", divisor); FfiConverterU64.checkType("divisor", divisor);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
4, // arithmetic:arithmetic_708a_div 24, // arithmetic:arithmetic_906c_div
FfiConverterU64.lower(dividend), FfiConverterU64.lower(dividend),
FfiConverterU64.lower(divisor), FfiConverterU64.lower(divisor),
) )
@ -386,7 +386,7 @@ function equal(a,b) {
FfiConverterU64.checkType("a", a); FfiConverterU64.checkType("a", a);
FfiConverterU64.checkType("b", b); FfiConverterU64.checkType("b", b);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
5, // arithmetic:arithmetic_708a_equal 25, // arithmetic:arithmetic_906c_equal
FfiConverterU64.lower(a), FfiConverterU64.lower(a),
FfiConverterU64.lower(b), FfiConverterU64.lower(b),
) )

View file

@ -398,7 +398,7 @@ function getCustomTypesDemo(demo) {
const functionCall = () => { const functionCall = () => {
FfiConverterOptionalTypeCustomTypesDemo.checkType("demo", demo); FfiConverterOptionalTypeCustomTypesDemo.checkType("demo", demo);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
87, // customtypes:customtypes_6e0d_get_custom_types_demo 107, // customtypes:customtypes_fb46_get_custom_types_demo
FfiConverterOptionalTypeCustomTypesDemo.lower(demo), FfiConverterOptionalTypeCustomTypesDemo.lower(demo),
) )
} }

View file

@ -392,7 +392,7 @@ function gradient(ln) {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeLine.checkType("ln", ln); FfiConverterTypeLine.checkType("ln", ln);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
0, // geometry:geometry_631c_gradient 20, // geometry:geometry_1cce_gradient
FfiConverterTypeLine.lower(ln), FfiConverterTypeLine.lower(ln),
) )
} }
@ -412,7 +412,7 @@ function intersection(ln1,ln2) {
FfiConverterTypeLine.checkType("ln1", ln1); FfiConverterTypeLine.checkType("ln1", ln1);
FfiConverterTypeLine.checkType("ln2", ln2); FfiConverterTypeLine.checkType("ln2", ln2);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
1, // geometry:geometry_631c_intersection 21, // geometry:geometry_1cce_intersection
FfiConverterTypeLine.lower(ln1), FfiConverterTypeLine.lower(ln1),
FfiConverterTypeLine.lower(ln2), FfiConverterTypeLine.lower(ln2),
) )

View file

@ -158,7 +158,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
readPointerRetourneur() { readPointerRetourneur() {
const pointerId = 0; // rondpoint:Retourneur const pointerId = 2; // rondpoint:Retourneur
const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos); const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
return res; return res;
@ -168,7 +168,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
writePointerRetourneur(value) { writePointerRetourneur(value) {
const pointerId = 0; // rondpoint:Retourneur const pointerId = 2; // rondpoint:Retourneur
UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos); UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
} }
@ -178,7 +178,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
readPointerStringifier() { readPointerStringifier() {
const pointerId = 1; // rondpoint:Stringifier const pointerId = 3; // rondpoint:Stringifier
const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos); const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
return res; return res;
@ -188,7 +188,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
writePointerStringifier(value) { writePointerStringifier(value) {
const pointerId = 1; // rondpoint:Stringifier const pointerId = 3; // rondpoint:Stringifier
UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos); UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
} }
@ -198,7 +198,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
readPointerOptionneur() { readPointerOptionneur() {
const pointerId = 2; // rondpoint:Optionneur const pointerId = 4; // rondpoint:Optionneur
const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos); const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
return res; return res;
@ -208,7 +208,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
writePointerOptionneur(value) { writePointerOptionneur(value) {
const pointerId = 2; // rondpoint:Optionneur const pointerId = 4; // rondpoint:Optionneur
UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos); UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
} }
@ -576,7 +576,7 @@ class Optionneur {
const liftError = null; const liftError = null;
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
35, // rondpoint:rondpoint_6001_Optionneur_new 55, // rondpoint:rondpoint_c6ef_Optionneur_new
) )
} }
try { try {
@ -590,7 +590,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterBool.checkType("value", value); FfiConverterBool.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
36, // rondpoint:rondpoint_6001_Optionneur_sinon_boolean 56, // rondpoint:rondpoint_c6ef_Optionneur_sinon_boolean
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterBool.lower(value), FfiConverterBool.lower(value),
) )
@ -606,7 +606,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterString.checkType("value", value); FfiConverterString.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
37, // rondpoint:rondpoint_6001_Optionneur_sinon_string 57, // rondpoint:rondpoint_c6ef_Optionneur_sinon_string
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterString.lower(value), FfiConverterString.lower(value),
) )
@ -622,7 +622,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterSequencestring.checkType("value", value); FfiConverterSequencestring.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
38, // rondpoint:rondpoint_6001_Optionneur_sinon_sequence 58, // rondpoint:rondpoint_c6ef_Optionneur_sinon_sequence
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterSequencestring.lower(value), FfiConverterSequencestring.lower(value),
) )
@ -638,7 +638,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterOptionalstring.checkType("value", value); FfiConverterOptionalstring.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
39, // rondpoint:rondpoint_6001_Optionneur_sinon_null 59, // rondpoint:rondpoint_c6ef_Optionneur_sinon_null
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterOptionalstring.lower(value), FfiConverterOptionalstring.lower(value),
) )
@ -654,7 +654,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterOptionali32.checkType("value", value); FfiConverterOptionali32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
40, // rondpoint:rondpoint_6001_Optionneur_sinon_zero 60, // rondpoint:rondpoint_c6ef_Optionneur_sinon_zero
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterOptionali32.lower(value), FfiConverterOptionali32.lower(value),
) )
@ -670,7 +670,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU8.checkType("value", value); FfiConverterU8.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
41, // rondpoint:rondpoint_6001_Optionneur_sinon_u8_dec 61, // rondpoint:rondpoint_c6ef_Optionneur_sinon_u8_dec
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterU8.lower(value), FfiConverterU8.lower(value),
) )
@ -686,7 +686,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI8.checkType("value", value); FfiConverterI8.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
42, // rondpoint:rondpoint_6001_Optionneur_sinon_i8_dec 62, // rondpoint:rondpoint_c6ef_Optionneur_sinon_i8_dec
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterI8.lower(value), FfiConverterI8.lower(value),
) )
@ -702,7 +702,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU16.checkType("value", value); FfiConverterU16.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
43, // rondpoint:rondpoint_6001_Optionneur_sinon_u16_dec 63, // rondpoint:rondpoint_c6ef_Optionneur_sinon_u16_dec
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterU16.lower(value), FfiConverterU16.lower(value),
) )
@ -718,7 +718,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI16.checkType("value", value); FfiConverterI16.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
44, // rondpoint:rondpoint_6001_Optionneur_sinon_i16_dec 64, // rondpoint:rondpoint_c6ef_Optionneur_sinon_i16_dec
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterI16.lower(value), FfiConverterI16.lower(value),
) )
@ -734,7 +734,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU32.checkType("value", value); FfiConverterU32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
45, // rondpoint:rondpoint_6001_Optionneur_sinon_u32_dec 65, // rondpoint:rondpoint_c6ef_Optionneur_sinon_u32_dec
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterU32.lower(value), FfiConverterU32.lower(value),
) )
@ -750,7 +750,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI32.checkType("value", value); FfiConverterI32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
46, // rondpoint:rondpoint_6001_Optionneur_sinon_i32_dec 66, // rondpoint:rondpoint_c6ef_Optionneur_sinon_i32_dec
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterI32.lower(value), FfiConverterI32.lower(value),
) )
@ -766,7 +766,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU64.checkType("value", value); FfiConverterU64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
47, // rondpoint:rondpoint_6001_Optionneur_sinon_u64_dec 67, // rondpoint:rondpoint_c6ef_Optionneur_sinon_u64_dec
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterU64.lower(value), FfiConverterU64.lower(value),
) )
@ -782,7 +782,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI64.checkType("value", value); FfiConverterI64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
48, // rondpoint:rondpoint_6001_Optionneur_sinon_i64_dec 68, // rondpoint:rondpoint_c6ef_Optionneur_sinon_i64_dec
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterI64.lower(value), FfiConverterI64.lower(value),
) )
@ -798,7 +798,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU8.checkType("value", value); FfiConverterU8.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
49, // rondpoint:rondpoint_6001_Optionneur_sinon_u8_hex 69, // rondpoint:rondpoint_c6ef_Optionneur_sinon_u8_hex
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterU8.lower(value), FfiConverterU8.lower(value),
) )
@ -814,7 +814,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI8.checkType("value", value); FfiConverterI8.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
50, // rondpoint:rondpoint_6001_Optionneur_sinon_i8_hex 70, // rondpoint:rondpoint_c6ef_Optionneur_sinon_i8_hex
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterI8.lower(value), FfiConverterI8.lower(value),
) )
@ -830,7 +830,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU16.checkType("value", value); FfiConverterU16.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
51, // rondpoint:rondpoint_6001_Optionneur_sinon_u16_hex 71, // rondpoint:rondpoint_c6ef_Optionneur_sinon_u16_hex
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterU16.lower(value), FfiConverterU16.lower(value),
) )
@ -846,7 +846,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI16.checkType("value", value); FfiConverterI16.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
52, // rondpoint:rondpoint_6001_Optionneur_sinon_i16_hex 72, // rondpoint:rondpoint_c6ef_Optionneur_sinon_i16_hex
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterI16.lower(value), FfiConverterI16.lower(value),
) )
@ -862,7 +862,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU32.checkType("value", value); FfiConverterU32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
53, // rondpoint:rondpoint_6001_Optionneur_sinon_u32_hex 73, // rondpoint:rondpoint_c6ef_Optionneur_sinon_u32_hex
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterU32.lower(value), FfiConverterU32.lower(value),
) )
@ -878,7 +878,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI32.checkType("value", value); FfiConverterI32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
54, // rondpoint:rondpoint_6001_Optionneur_sinon_i32_hex 74, // rondpoint:rondpoint_c6ef_Optionneur_sinon_i32_hex
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterI32.lower(value), FfiConverterI32.lower(value),
) )
@ -894,7 +894,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU64.checkType("value", value); FfiConverterU64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
55, // rondpoint:rondpoint_6001_Optionneur_sinon_u64_hex 75, // rondpoint:rondpoint_c6ef_Optionneur_sinon_u64_hex
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterU64.lower(value), FfiConverterU64.lower(value),
) )
@ -910,7 +910,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI64.checkType("value", value); FfiConverterI64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
56, // rondpoint:rondpoint_6001_Optionneur_sinon_i64_hex 76, // rondpoint:rondpoint_c6ef_Optionneur_sinon_i64_hex
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterI64.lower(value), FfiConverterI64.lower(value),
) )
@ -926,7 +926,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU32.checkType("value", value); FfiConverterU32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
57, // rondpoint:rondpoint_6001_Optionneur_sinon_u32_oct 77, // rondpoint:rondpoint_c6ef_Optionneur_sinon_u32_oct
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterU32.lower(value), FfiConverterU32.lower(value),
) )
@ -942,7 +942,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterF32.checkType("value", value); FfiConverterF32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
58, // rondpoint:rondpoint_6001_Optionneur_sinon_f32 78, // rondpoint:rondpoint_c6ef_Optionneur_sinon_f32
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterF32.lower(value), FfiConverterF32.lower(value),
) )
@ -958,7 +958,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterF64.checkType("value", value); FfiConverterF64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
59, // rondpoint:rondpoint_6001_Optionneur_sinon_f64 79, // rondpoint:rondpoint_c6ef_Optionneur_sinon_f64
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterF64.lower(value), FfiConverterF64.lower(value),
) )
@ -974,7 +974,7 @@ class Optionneur {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeEnumeration.checkType("value", value); FfiConverterTypeEnumeration.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
60, // rondpoint:rondpoint_6001_Optionneur_sinon_enum 80, // rondpoint:rondpoint_c6ef_Optionneur_sinon_enum
FfiConverterTypeOptionneur.lower(this), FfiConverterTypeOptionneur.lower(this),
FfiConverterTypeEnumeration.lower(value), FfiConverterTypeEnumeration.lower(value),
) )
@ -1038,7 +1038,7 @@ class Retourneur {
const liftError = null; const liftError = null;
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
6, // rondpoint:rondpoint_6001_Retourneur_new 26, // rondpoint:rondpoint_c6ef_Retourneur_new
) )
} }
try { try {
@ -1052,7 +1052,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI8.checkType("value", value); FfiConverterI8.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
7, // rondpoint:rondpoint_6001_Retourneur_identique_i8 27, // rondpoint:rondpoint_c6ef_Retourneur_identique_i8
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterI8.lower(value), FfiConverterI8.lower(value),
) )
@ -1068,7 +1068,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU8.checkType("value", value); FfiConverterU8.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
8, // rondpoint:rondpoint_6001_Retourneur_identique_u8 28, // rondpoint:rondpoint_c6ef_Retourneur_identique_u8
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterU8.lower(value), FfiConverterU8.lower(value),
) )
@ -1084,7 +1084,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI16.checkType("value", value); FfiConverterI16.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
9, // rondpoint:rondpoint_6001_Retourneur_identique_i16 29, // rondpoint:rondpoint_c6ef_Retourneur_identique_i16
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterI16.lower(value), FfiConverterI16.lower(value),
) )
@ -1100,7 +1100,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU16.checkType("value", value); FfiConverterU16.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
10, // rondpoint:rondpoint_6001_Retourneur_identique_u16 30, // rondpoint:rondpoint_c6ef_Retourneur_identique_u16
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterU16.lower(value), FfiConverterU16.lower(value),
) )
@ -1116,7 +1116,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI32.checkType("value", value); FfiConverterI32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
11, // rondpoint:rondpoint_6001_Retourneur_identique_i32 31, // rondpoint:rondpoint_c6ef_Retourneur_identique_i32
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterI32.lower(value), FfiConverterI32.lower(value),
) )
@ -1132,7 +1132,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU32.checkType("value", value); FfiConverterU32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
12, // rondpoint:rondpoint_6001_Retourneur_identique_u32 32, // rondpoint:rondpoint_c6ef_Retourneur_identique_u32
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterU32.lower(value), FfiConverterU32.lower(value),
) )
@ -1148,7 +1148,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterI64.checkType("value", value); FfiConverterI64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
13, // rondpoint:rondpoint_6001_Retourneur_identique_i64 33, // rondpoint:rondpoint_c6ef_Retourneur_identique_i64
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterI64.lower(value), FfiConverterI64.lower(value),
) )
@ -1164,7 +1164,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterU64.checkType("value", value); FfiConverterU64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
14, // rondpoint:rondpoint_6001_Retourneur_identique_u64 34, // rondpoint:rondpoint_c6ef_Retourneur_identique_u64
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterU64.lower(value), FfiConverterU64.lower(value),
) )
@ -1180,7 +1180,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterF32.checkType("value", value); FfiConverterF32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
15, // rondpoint:rondpoint_6001_Retourneur_identique_float 35, // rondpoint:rondpoint_c6ef_Retourneur_identique_float
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterF32.lower(value), FfiConverterF32.lower(value),
) )
@ -1196,7 +1196,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterF64.checkType("value", value); FfiConverterF64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
16, // rondpoint:rondpoint_6001_Retourneur_identique_double 36, // rondpoint:rondpoint_c6ef_Retourneur_identique_double
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterF64.lower(value), FfiConverterF64.lower(value),
) )
@ -1212,7 +1212,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterBool.checkType("value", value); FfiConverterBool.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
17, // rondpoint:rondpoint_6001_Retourneur_identique_boolean 37, // rondpoint:rondpoint_c6ef_Retourneur_identique_boolean
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterBool.lower(value), FfiConverterBool.lower(value),
) )
@ -1228,7 +1228,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterString.checkType("value", value); FfiConverterString.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
18, // rondpoint:rondpoint_6001_Retourneur_identique_string 38, // rondpoint:rondpoint_c6ef_Retourneur_identique_string
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterString.lower(value), FfiConverterString.lower(value),
) )
@ -1244,7 +1244,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeDictionnaireNombresSignes.checkType("value", value); FfiConverterTypeDictionnaireNombresSignes.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
19, // rondpoint:rondpoint_6001_Retourneur_identique_nombres_signes 39, // rondpoint:rondpoint_c6ef_Retourneur_identique_nombres_signes
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterTypeDictionnaireNombresSignes.lower(value), FfiConverterTypeDictionnaireNombresSignes.lower(value),
) )
@ -1260,7 +1260,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeDictionnaireNombres.checkType("value", value); FfiConverterTypeDictionnaireNombres.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
20, // rondpoint:rondpoint_6001_Retourneur_identique_nombres 40, // rondpoint:rondpoint_c6ef_Retourneur_identique_nombres
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterTypeDictionnaireNombres.lower(value), FfiConverterTypeDictionnaireNombres.lower(value),
) )
@ -1276,7 +1276,7 @@ class Retourneur {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeOptionneurDictionnaire.checkType("value", value); FfiConverterTypeOptionneurDictionnaire.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
21, // rondpoint:rondpoint_6001_Retourneur_identique_optionneur_dictionnaire 41, // rondpoint:rondpoint_c6ef_Retourneur_identique_optionneur_dictionnaire
FfiConverterTypeRetourneur.lower(this), FfiConverterTypeRetourneur.lower(this),
FfiConverterTypeOptionneurDictionnaire.lower(value), FfiConverterTypeOptionneurDictionnaire.lower(value),
) )
@ -1340,7 +1340,7 @@ class Stringifier {
const liftError = null; const liftError = null;
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
22, // rondpoint:rondpoint_6001_Stringifier_new 42, // rondpoint:rondpoint_c6ef_Stringifier_new
) )
} }
try { try {
@ -1354,7 +1354,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterString.checkType("value", value); FfiConverterString.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
23, // rondpoint:rondpoint_6001_Stringifier_well_known_string 43, // rondpoint:rondpoint_c6ef_Stringifier_well_known_string
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterString.lower(value), FfiConverterString.lower(value),
) )
@ -1370,7 +1370,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterI8.checkType("value", value); FfiConverterI8.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
24, // rondpoint:rondpoint_6001_Stringifier_to_string_i8 44, // rondpoint:rondpoint_c6ef_Stringifier_to_string_i8
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterI8.lower(value), FfiConverterI8.lower(value),
) )
@ -1386,7 +1386,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterU8.checkType("value", value); FfiConverterU8.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
25, // rondpoint:rondpoint_6001_Stringifier_to_string_u8 45, // rondpoint:rondpoint_c6ef_Stringifier_to_string_u8
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterU8.lower(value), FfiConverterU8.lower(value),
) )
@ -1402,7 +1402,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterI16.checkType("value", value); FfiConverterI16.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
26, // rondpoint:rondpoint_6001_Stringifier_to_string_i16 46, // rondpoint:rondpoint_c6ef_Stringifier_to_string_i16
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterI16.lower(value), FfiConverterI16.lower(value),
) )
@ -1418,7 +1418,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterU16.checkType("value", value); FfiConverterU16.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
27, // rondpoint:rondpoint_6001_Stringifier_to_string_u16 47, // rondpoint:rondpoint_c6ef_Stringifier_to_string_u16
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterU16.lower(value), FfiConverterU16.lower(value),
) )
@ -1434,7 +1434,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterI32.checkType("value", value); FfiConverterI32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
28, // rondpoint:rondpoint_6001_Stringifier_to_string_i32 48, // rondpoint:rondpoint_c6ef_Stringifier_to_string_i32
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterI32.lower(value), FfiConverterI32.lower(value),
) )
@ -1450,7 +1450,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterU32.checkType("value", value); FfiConverterU32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
29, // rondpoint:rondpoint_6001_Stringifier_to_string_u32 49, // rondpoint:rondpoint_c6ef_Stringifier_to_string_u32
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterU32.lower(value), FfiConverterU32.lower(value),
) )
@ -1466,7 +1466,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterI64.checkType("value", value); FfiConverterI64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
30, // rondpoint:rondpoint_6001_Stringifier_to_string_i64 50, // rondpoint:rondpoint_c6ef_Stringifier_to_string_i64
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterI64.lower(value), FfiConverterI64.lower(value),
) )
@ -1482,7 +1482,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterU64.checkType("value", value); FfiConverterU64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
31, // rondpoint:rondpoint_6001_Stringifier_to_string_u64 51, // rondpoint:rondpoint_c6ef_Stringifier_to_string_u64
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterU64.lower(value), FfiConverterU64.lower(value),
) )
@ -1498,7 +1498,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterF32.checkType("value", value); FfiConverterF32.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
32, // rondpoint:rondpoint_6001_Stringifier_to_string_float 52, // rondpoint:rondpoint_c6ef_Stringifier_to_string_float
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterF32.lower(value), FfiConverterF32.lower(value),
) )
@ -1514,7 +1514,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterF64.checkType("value", value); FfiConverterF64.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
33, // rondpoint:rondpoint_6001_Stringifier_to_string_double 53, // rondpoint:rondpoint_c6ef_Stringifier_to_string_double
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterF64.lower(value), FfiConverterF64.lower(value),
) )
@ -1530,7 +1530,7 @@ class Stringifier {
const functionCall = () => { const functionCall = () => {
FfiConverterBool.checkType("value", value); FfiConverterBool.checkType("value", value);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
34, // rondpoint:rondpoint_6001_Stringifier_to_string_boolean 54, // rondpoint:rondpoint_c6ef_Stringifier_to_string_boolean
FfiConverterTypeStringifier.lower(this), FfiConverterTypeStringifier.lower(this),
FfiConverterBool.lower(value), FfiConverterBool.lower(value),
) )
@ -2266,7 +2266,7 @@ function copieDictionnaire(d) {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeDictionnaire.checkType("d", d); FfiConverterTypeDictionnaire.checkType("d", d);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
61, // rondpoint:rondpoint_6001_copie_dictionnaire 81, // rondpoint:rondpoint_c6ef_copie_dictionnaire
FfiConverterTypeDictionnaire.lower(d), FfiConverterTypeDictionnaire.lower(d),
) )
} }
@ -2285,7 +2285,7 @@ function copieEnumeration(e) {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeEnumeration.checkType("e", e); FfiConverterTypeEnumeration.checkType("e", e);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
62, // rondpoint:rondpoint_6001_copie_enumeration 82, // rondpoint:rondpoint_c6ef_copie_enumeration
FfiConverterTypeEnumeration.lower(e), FfiConverterTypeEnumeration.lower(e),
) )
} }
@ -2304,7 +2304,7 @@ function copieEnumerations(e) {
const functionCall = () => { const functionCall = () => {
FfiConverterSequenceTypeEnumeration.checkType("e", e); FfiConverterSequenceTypeEnumeration.checkType("e", e);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
63, // rondpoint:rondpoint_6001_copie_enumerations 83, // rondpoint:rondpoint_c6ef_copie_enumerations
FfiConverterSequenceTypeEnumeration.lower(e), FfiConverterSequenceTypeEnumeration.lower(e),
) )
} }
@ -2323,7 +2323,7 @@ function copieCarte(c) {
const functionCall = () => { const functionCall = () => {
FfiConverterMapStringTypeEnumerationAvecDonnees.checkType("c", c); FfiConverterMapStringTypeEnumerationAvecDonnees.checkType("c", c);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
64, // rondpoint:rondpoint_6001_copie_carte 84, // rondpoint:rondpoint_c6ef_copie_carte
FfiConverterMapStringTypeEnumerationAvecDonnees.lower(c), FfiConverterMapStringTypeEnumerationAvecDonnees.lower(c),
) )
} }
@ -2342,7 +2342,7 @@ function switcheroo(b) {
const functionCall = () => { const functionCall = () => {
FfiConverterBool.checkType("b", b); FfiConverterBool.checkType("b", b);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
65, // rondpoint:rondpoint_6001_switcheroo 85, // rondpoint:rondpoint_c6ef_switcheroo
FfiConverterBool.lower(b), FfiConverterBool.lower(b),
) )
} }

View file

@ -158,7 +158,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
readPointerSprite() { readPointerSprite() {
const pointerId = 3; // sprites:Sprite const pointerId = 5; // sprites:Sprite
const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos); const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
return res; return res;
@ -168,7 +168,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
writePointerSprite(value) { writePointerSprite(value) {
const pointerId = 3; // sprites:Sprite const pointerId = 5; // sprites:Sprite
UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos); UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
} }
@ -304,7 +304,7 @@ class Sprite {
const functionCall = () => { const functionCall = () => {
FfiConverterOptionalTypePoint.checkType("initialPosition", initialPosition); FfiConverterOptionalTypePoint.checkType("initialPosition", initialPosition);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
66, // sprites:sprites_83ef_Sprite_new 86, // sprites:sprites_accb_Sprite_new
FfiConverterOptionalTypePoint.lower(initialPosition), FfiConverterOptionalTypePoint.lower(initialPosition),
) )
} }
@ -326,7 +326,7 @@ class Sprite {
FfiConverterTypePoint.checkType("reference", reference); FfiConverterTypePoint.checkType("reference", reference);
FfiConverterTypeVector.checkType("direction", direction); FfiConverterTypeVector.checkType("direction", direction);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
67, // sprites:sprites_83ef_Sprite_new_relative_to 87, // sprites:sprites_accb_Sprite_new_relative_to
FfiConverterTypePoint.lower(reference), FfiConverterTypePoint.lower(reference),
FfiConverterTypeVector.lower(direction), FfiConverterTypeVector.lower(direction),
) )
@ -341,7 +341,7 @@ class Sprite {
const liftError = null; const liftError = null;
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
68, // sprites:sprites_83ef_Sprite_get_position 88, // sprites:sprites_accb_Sprite_get_position
FfiConverterTypeSprite.lower(this), FfiConverterTypeSprite.lower(this),
) )
} }
@ -356,7 +356,7 @@ class Sprite {
const functionCall = () => { const functionCall = () => {
FfiConverterTypePoint.checkType("position", position); FfiConverterTypePoint.checkType("position", position);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
69, // sprites:sprites_83ef_Sprite_move_to 89, // sprites:sprites_accb_Sprite_move_to
FfiConverterTypeSprite.lower(this), FfiConverterTypeSprite.lower(this),
FfiConverterTypePoint.lower(position), FfiConverterTypePoint.lower(position),
) )
@ -372,7 +372,7 @@ class Sprite {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeVector.checkType("direction", direction); FfiConverterTypeVector.checkType("direction", direction);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
70, // sprites:sprites_83ef_Sprite_move_by 90, // sprites:sprites_accb_Sprite_move_by
FfiConverterTypeSprite.lower(this), FfiConverterTypeSprite.lower(this),
FfiConverterTypeVector.lower(direction), FfiConverterTypeVector.lower(direction),
) )
@ -546,7 +546,7 @@ function translate(position,direction) {
FfiConverterTypePoint.checkType("position", position); FfiConverterTypePoint.checkType("position", position);
FfiConverterTypeVector.checkType("direction", direction); FfiConverterTypeVector.checkType("direction", direction);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
71, // sprites:sprites_83ef_translate 91, // sprites:sprites_accb_translate
FfiConverterTypePoint.lower(position), FfiConverterTypePoint.lower(position),
FfiConverterTypeVector.lower(direction), FfiConverterTypeVector.lower(direction),
) )

View file

@ -158,7 +158,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
readPointerTodoList() { readPointerTodoList() {
const pointerId = 4; // todolist:TodoList const pointerId = 6; // todolist:TodoList
const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos); const res = UniFFIScaffolding.readPointer(pointerId, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
return res; return res;
@ -168,7 +168,7 @@ class ArrayBufferDataStream {
// UniFFI Pointers are **always** 8 bytes long. That is enforced // UniFFI Pointers are **always** 8 bytes long. That is enforced
// by the C++ and Rust Scaffolding code. // by the C++ and Rust Scaffolding code.
writePointerTodoList(value) { writePointerTodoList(value) {
const pointerId = 4; // todolist:TodoList const pointerId = 6; // todolist:TodoList
UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos); UniFFIScaffolding.writePointer(pointerId, value, this.dataView.buffer, this.pos);
this.pos += 8; this.pos += 8;
} }
@ -287,7 +287,7 @@ class TodoList {
const liftError = null; const liftError = null;
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
72, // todolist:todolist_6791_TodoList_new 92, // todolist:todolist_aa33_TodoList_new
) )
} }
try { try {
@ -301,7 +301,7 @@ class TodoList {
const functionCall = () => { const functionCall = () => {
FfiConverterString.checkType("todo", todo); FfiConverterString.checkType("todo", todo);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
73, // todolist:todolist_6791_TodoList_add_item 93, // todolist:todolist_aa33_TodoList_add_item
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
FfiConverterString.lower(todo), FfiConverterString.lower(todo),
) )
@ -317,7 +317,7 @@ class TodoList {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeTodoEntry.checkType("entry", entry); FfiConverterTypeTodoEntry.checkType("entry", entry);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
74, // todolist:todolist_6791_TodoList_add_entry 94, // todolist:todolist_aa33_TodoList_add_entry
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
FfiConverterTypeTodoEntry.lower(entry), FfiConverterTypeTodoEntry.lower(entry),
) )
@ -332,7 +332,7 @@ class TodoList {
const liftError = null; const liftError = null;
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
75, // todolist:todolist_6791_TodoList_get_entries 95, // todolist:todolist_aa33_TodoList_get_entries
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
) )
} }
@ -346,7 +346,7 @@ class TodoList {
const liftError = null; const liftError = null;
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
76, // todolist:todolist_6791_TodoList_get_items 96, // todolist:todolist_aa33_TodoList_get_items
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
) )
} }
@ -361,7 +361,7 @@ class TodoList {
const functionCall = () => { const functionCall = () => {
FfiConverterSequenceTypeTodoEntry.checkType("entries", entries); FfiConverterSequenceTypeTodoEntry.checkType("entries", entries);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
77, // todolist:todolist_6791_TodoList_add_entries 97, // todolist:todolist_aa33_TodoList_add_entries
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
FfiConverterSequenceTypeTodoEntry.lower(entries), FfiConverterSequenceTypeTodoEntry.lower(entries),
) )
@ -377,7 +377,7 @@ class TodoList {
const functionCall = () => { const functionCall = () => {
FfiConverterSequencestring.checkType("items", items); FfiConverterSequencestring.checkType("items", items);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
78, // todolist:todolist_6791_TodoList_add_items 98, // todolist:todolist_aa33_TodoList_add_items
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
FfiConverterSequencestring.lower(items), FfiConverterSequencestring.lower(items),
) )
@ -392,7 +392,7 @@ class TodoList {
const liftError = (data) => FfiConverterTypeTodoError.lift(data); const liftError = (data) => FfiConverterTypeTodoError.lift(data);
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
79, // todolist:todolist_6791_TodoList_get_last_entry 99, // todolist:todolist_aa33_TodoList_get_last_entry
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
) )
} }
@ -406,7 +406,7 @@ class TodoList {
const liftError = (data) => FfiConverterTypeTodoError.lift(data); const liftError = (data) => FfiConverterTypeTodoError.lift(data);
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
80, // todolist:todolist_6791_TodoList_get_last 100, // todolist:todolist_aa33_TodoList_get_last
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
) )
} }
@ -420,7 +420,7 @@ class TodoList {
const liftError = (data) => FfiConverterTypeTodoError.lift(data); const liftError = (data) => FfiConverterTypeTodoError.lift(data);
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
81, // todolist:todolist_6791_TodoList_get_first 101, // todolist:todolist_aa33_TodoList_get_first
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
) )
} }
@ -435,7 +435,7 @@ class TodoList {
const functionCall = () => { const functionCall = () => {
FfiConverterString.checkType("todo", todo); FfiConverterString.checkType("todo", todo);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
82, // todolist:todolist_6791_TodoList_clear_item 102, // todolist:todolist_aa33_TodoList_clear_item
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
FfiConverterString.lower(todo), FfiConverterString.lower(todo),
) )
@ -450,7 +450,7 @@ class TodoList {
const liftError = null; const liftError = null;
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
83, // todolist:todolist_6791_TodoList_make_default 103, // todolist:todolist_aa33_TodoList_make_default
FfiConverterTypeTodoList.lower(this), FfiConverterTypeTodoList.lower(this),
) )
} }
@ -686,7 +686,7 @@ function getDefaultList() {
const liftError = null; const liftError = null;
const functionCall = () => { const functionCall = () => {
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
84, // todolist:todolist_6791_get_default_list 104, // todolist:todolist_aa33_get_default_list
) )
} }
try { try {
@ -704,7 +704,7 @@ function setDefaultList(list) {
const functionCall = () => { const functionCall = () => {
FfiConverterTypeTodoList.checkType("list", list); FfiConverterTypeTodoList.checkType("list", list);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
85, // todolist:todolist_6791_set_default_list 105, // todolist:todolist_aa33_set_default_list
FfiConverterTypeTodoList.lower(list), FfiConverterTypeTodoList.lower(list),
) )
} }
@ -723,7 +723,7 @@ function createEntryWith(todo) {
const functionCall = () => { const functionCall = () => {
FfiConverterString.checkType("todo", todo); FfiConverterString.checkType("todo", todo);
return UniFFIScaffolding.callAsync( return UniFFIScaffolding.callAsync(
86, // todolist:todolist_6791_create_entry_with 106, // todolist:todolist_aa33_create_entry_with
FfiConverterString.lower(todo), FfiConverterString.lower(todo),
) )
} }

File diff suppressed because it is too large Load diff

View file

@ -19,28 +19,265 @@ using dom::UniFFIScaffoldingCallResult;
// Define scaffolding functions from UniFFI // Define scaffolding functions from UniFFI
extern "C" { extern "C" {
void ffi_tabs_4d51_TabsStore_object_free(void *, RustCallStatus*);
void * tabs_4d51_TabsStore_new(RustBuffer, RustCallStatus*);
RustBuffer tabs_4d51_TabsStore_get_all(void *, RustCallStatus*);
void tabs_4d51_TabsStore_set_local_tabs(void *, RustBuffer, RustCallStatus*);
void tabs_4d51_TabsStore_register_with_sync_manager(void *, RustCallStatus*);
void tabs_4d51_TabsStore_reset(void *, RustCallStatus*);
RustBuffer tabs_4d51_TabsStore_sync(void *, RustBuffer, RustBuffer, RustBuffer, RustBuffer, RustBuffer, RustCallStatus*);
void * tabs_4d51_TabsStore_bridged_engine(void *, RustCallStatus*);
void ffi_tabs_4d51_TabsBridgedEngine_object_free(void *, RustCallStatus*);
int64_t tabs_4d51_TabsBridgedEngine_last_sync(void *, RustCallStatus*);
void tabs_4d51_TabsBridgedEngine_set_last_sync(void *, int64_t, RustCallStatus*);
RustBuffer tabs_4d51_TabsBridgedEngine_sync_id(void *, RustCallStatus*);
RustBuffer tabs_4d51_TabsBridgedEngine_reset_sync_id(void *, RustCallStatus*);
RustBuffer tabs_4d51_TabsBridgedEngine_ensure_current_sync_id(void *, RustBuffer, RustCallStatus*);
void tabs_4d51_TabsBridgedEngine_prepare_for_sync(void *, RustBuffer, RustCallStatus*);
void tabs_4d51_TabsBridgedEngine_sync_started(void *, RustCallStatus*);
void tabs_4d51_TabsBridgedEngine_store_incoming(void *, RustBuffer, RustCallStatus*);
RustBuffer tabs_4d51_TabsBridgedEngine_apply(void *, RustCallStatus*);
void tabs_4d51_TabsBridgedEngine_set_uploaded(void *, int64_t, RustBuffer, RustCallStatus*);
void tabs_4d51_TabsBridgedEngine_sync_finished(void *, RustCallStatus*);
void tabs_4d51_TabsBridgedEngine_reset(void *, RustCallStatus*);
void tabs_4d51_TabsBridgedEngine_wipe(void *, RustCallStatus*);
} }
// Define pointer types // Define pointer types
const static mozilla::uniffi::UniFFIPointerType kTabsTabsStorePointerType {
"tabs::TabsStore"_ns,
ffi_tabs_4d51_TabsStore_object_free
};
const static mozilla::uniffi::UniFFIPointerType kTabsTabsBridgedEnginePointerType {
"tabs::TabsBridgedEngine"_ns,
ffi_tabs_4d51_TabsBridgedEngine_object_free
};
Maybe<already_AddRefed<Promise>> UniFFICallAsync(const GlobalObject& aGlobal, uint64_t aId, const Sequence<ScaffoldingType>& aArgs, ErrorResult& aError) { Maybe<already_AddRefed<Promise>> UniFFICallAsync(const GlobalObject& aGlobal, uint64_t aId, const Sequence<ScaffoldingType>& aArgs, ErrorResult& aError) {
switch (aId) { switch (aId) {
case 0: { // tabs:tabs_4d51_TabsStore_new
using CallHandler = ScaffoldingCallHandler<ScaffoldingObjectConverter<&kTabsTabsStorePointerType>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsStore_new, aGlobal, aArgs, "tabs_4d51_TabsStore_new: "_ns, aError));
}
case 1: { // tabs:tabs_4d51_TabsStore_get_all
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsStore_get_all, aGlobal, aArgs, "tabs_4d51_TabsStore_get_all: "_ns, aError));
}
case 2: { // tabs:tabs_4d51_TabsStore_set_local_tabs
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsStore_set_local_tabs, aGlobal, aArgs, "tabs_4d51_TabsStore_set_local_tabs: "_ns, aError));
}
case 3: { // tabs:tabs_4d51_TabsStore_register_with_sync_manager
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsStore_register_with_sync_manager, aGlobal, aArgs, "tabs_4d51_TabsStore_register_with_sync_manager: "_ns, aError));
}
case 4: { // tabs:tabs_4d51_TabsStore_reset
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsStore_reset, aGlobal, aArgs, "tabs_4d51_TabsStore_reset: "_ns, aError));
}
case 5: { // tabs:tabs_4d51_TabsStore_sync
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsStore_sync, aGlobal, aArgs, "tabs_4d51_TabsStore_sync: "_ns, aError));
}
case 6: { // tabs:tabs_4d51_TabsStore_bridged_engine
using CallHandler = ScaffoldingCallHandler<ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsStore_bridged_engine, aGlobal, aArgs, "tabs_4d51_TabsStore_bridged_engine: "_ns, aError));
}
case 7: { // tabs:tabs_4d51_TabsBridgedEngine_last_sync
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<int64_t>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_last_sync, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_last_sync: "_ns, aError));
}
case 8: { // tabs:tabs_4d51_TabsBridgedEngine_set_last_sync
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<int64_t>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_set_last_sync, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_set_last_sync: "_ns, aError));
}
case 9: { // tabs:tabs_4d51_TabsBridgedEngine_sync_id
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_sync_id, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_sync_id: "_ns, aError));
}
case 10: { // tabs:tabs_4d51_TabsBridgedEngine_reset_sync_id
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_reset_sync_id, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_reset_sync_id: "_ns, aError));
}
case 11: { // tabs:tabs_4d51_TabsBridgedEngine_ensure_current_sync_id
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_ensure_current_sync_id, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_ensure_current_sync_id: "_ns, aError));
}
case 12: { // tabs:tabs_4d51_TabsBridgedEngine_prepare_for_sync
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_prepare_for_sync, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_prepare_for_sync: "_ns, aError));
}
case 13: { // tabs:tabs_4d51_TabsBridgedEngine_sync_started
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_sync_started, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_sync_started: "_ns, aError));
}
case 14: { // tabs:tabs_4d51_TabsBridgedEngine_store_incoming
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_store_incoming, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_store_incoming: "_ns, aError));
}
case 15: { // tabs:tabs_4d51_TabsBridgedEngine_apply
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_apply, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_apply: "_ns, aError));
}
case 16: { // tabs:tabs_4d51_TabsBridgedEngine_set_uploaded
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<int64_t>, ScaffoldingConverter<RustBuffer>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_set_uploaded, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_set_uploaded: "_ns, aError));
}
case 17: { // tabs:tabs_4d51_TabsBridgedEngine_sync_finished
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_sync_finished, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_sync_finished: "_ns, aError));
}
case 18: { // tabs:tabs_4d51_TabsBridgedEngine_reset
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_reset, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_reset: "_ns, aError));
}
case 19: { // tabs:tabs_4d51_TabsBridgedEngine_wipe
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
return Some(CallHandler::CallAsync(tabs_4d51_TabsBridgedEngine_wipe, aGlobal, aArgs, "tabs_4d51_TabsBridgedEngine_wipe: "_ns, aError));
}
} }
return Nothing(); return Nothing();
} }
bool UniFFICallSync(const GlobalObject& aGlobal, uint64_t aId, const Sequence<ScaffoldingType>& aArgs, RootedDictionary<UniFFIScaffoldingCallResult>& aReturnValue, ErrorResult& aError) { bool UniFFICallSync(const GlobalObject& aGlobal, uint64_t aId, const Sequence<ScaffoldingType>& aArgs, RootedDictionary<UniFFIScaffoldingCallResult>& aReturnValue, ErrorResult& aError) {
switch (aId) { switch (aId) {
case 0: { // tabs:tabs_4d51_TabsStore_new
using CallHandler = ScaffoldingCallHandler<ScaffoldingObjectConverter<&kTabsTabsStorePointerType>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(tabs_4d51_TabsStore_new, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsStore_new: "_ns, aError);
return true;
}
case 1: { // tabs:tabs_4d51_TabsStore_get_all
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsStore_get_all, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsStore_get_all: "_ns, aError);
return true;
}
case 2: { // tabs:tabs_4d51_TabsStore_set_local_tabs
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(tabs_4d51_TabsStore_set_local_tabs, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsStore_set_local_tabs: "_ns, aError);
return true;
}
case 3: { // tabs:tabs_4d51_TabsStore_register_with_sync_manager
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsStore_register_with_sync_manager, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsStore_register_with_sync_manager: "_ns, aError);
return true;
}
case 4: { // tabs:tabs_4d51_TabsStore_reset
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsStore_reset, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsStore_reset: "_ns, aError);
return true;
}
case 5: { // tabs:tabs_4d51_TabsStore_sync
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(tabs_4d51_TabsStore_sync, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsStore_sync: "_ns, aError);
return true;
}
case 6: { // tabs:tabs_4d51_TabsStore_bridged_engine
using CallHandler = ScaffoldingCallHandler<ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingObjectConverter<&kTabsTabsStorePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsStore_bridged_engine, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsStore_bridged_engine: "_ns, aError);
return true;
}
case 7: { // tabs:tabs_4d51_TabsBridgedEngine_last_sync
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<int64_t>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_last_sync, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_last_sync: "_ns, aError);
return true;
}
case 8: { // tabs:tabs_4d51_TabsBridgedEngine_set_last_sync
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<int64_t>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_set_last_sync, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_set_last_sync: "_ns, aError);
return true;
}
case 9: { // tabs:tabs_4d51_TabsBridgedEngine_sync_id
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_sync_id, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_sync_id: "_ns, aError);
return true;
}
case 10: { // tabs:tabs_4d51_TabsBridgedEngine_reset_sync_id
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_reset_sync_id, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_reset_sync_id: "_ns, aError);
return true;
}
case 11: { // tabs:tabs_4d51_TabsBridgedEngine_ensure_current_sync_id
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_ensure_current_sync_id, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_ensure_current_sync_id: "_ns, aError);
return true;
}
case 12: { // tabs:tabs_4d51_TabsBridgedEngine_prepare_for_sync
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_prepare_for_sync, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_prepare_for_sync: "_ns, aError);
return true;
}
case 13: { // tabs:tabs_4d51_TabsBridgedEngine_sync_started
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_sync_started, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_sync_started: "_ns, aError);
return true;
}
case 14: { // tabs:tabs_4d51_TabsBridgedEngine_store_incoming
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_store_incoming, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_store_incoming: "_ns, aError);
return true;
}
case 15: { // tabs:tabs_4d51_TabsBridgedEngine_apply
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<RustBuffer>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_apply, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_apply: "_ns, aError);
return true;
}
case 16: { // tabs:tabs_4d51_TabsBridgedEngine_set_uploaded
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>, ScaffoldingConverter<int64_t>, ScaffoldingConverter<RustBuffer>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_set_uploaded, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_set_uploaded: "_ns, aError);
return true;
}
case 17: { // tabs:tabs_4d51_TabsBridgedEngine_sync_finished
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_sync_finished, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_sync_finished: "_ns, aError);
return true;
}
case 18: { // tabs:tabs_4d51_TabsBridgedEngine_reset
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_reset, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_reset: "_ns, aError);
return true;
}
case 19: { // tabs:tabs_4d51_TabsBridgedEngine_wipe
using CallHandler = ScaffoldingCallHandler<ScaffoldingConverter<void>, ScaffoldingObjectConverter<&kTabsTabsBridgedEnginePointerType>>;
CallHandler::CallSync(tabs_4d51_TabsBridgedEngine_wipe, aGlobal, aArgs, aReturnValue, "tabs_4d51_TabsBridgedEngine_wipe: "_ns, aError);
return true;
}
} }
return false; return false;
} }
Maybe<already_AddRefed<UniFFIPointer>> UniFFIReadPointer(const GlobalObject& aGlobal, uint64_t aId, const ArrayBuffer& aArrayBuff, long aPosition, ErrorResult& aError) { Maybe<already_AddRefed<UniFFIPointer>> UniFFIReadPointer(const GlobalObject& aGlobal, uint64_t aId, const ArrayBuffer& aArrayBuff, long aPosition, ErrorResult& aError) {
return Nothing(); const UniFFIPointerType* type;
switch (aId) {
case 0: { // tabs:TabsStore
type = &kTabsTabsStorePointerType;
break;
}
case 1: { // tabs:TabsBridgedEngine
type = &kTabsTabsBridgedEnginePointerType;
break;
}
default:
return Nothing();
}
return Some(UniFFIPointer::Read(aArrayBuff, aPosition, type, aError));
} }
bool UniFFIWritePointer(const GlobalObject& aGlobal, uint64_t aId, const UniFFIPointer& aPtr, const ArrayBuffer& aArrayBuff, long aPosition, ErrorResult& aError) { bool UniFFIWritePointer(const GlobalObject& aGlobal, uint64_t aId, const UniFFIPointer& aPtr, const ArrayBuffer& aArrayBuff, long aPosition, ErrorResult& aError) {
return false; const UniFFIPointerType* type;
switch (aId) {
case 0: { // tabs:TabsStore
type = &kTabsTabsStorePointerType;
break;
}
case 1: { // tabs:TabsBridgedEngine
type = &kTabsTabsBridgedEnginePointerType;
break;
}
default:
return false;
}
aPtr.Write(aArrayBuff, aPosition, type, aError);
return true;
} }
} // namespace mozilla::uniffi } // namespace mozilla::uniffi