Skip to content

Commit 18aca99

Browse files
committed
Add BrotliDecoderErrorCode
1 parent 7b3d45f commit 18aca99

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

rules/brotli/ir_unsafe.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,5 +382,9 @@
382382
"init": "std::ptr::null()",
383383
"type": "*const ::brotli_sys::BrotliDecoderState",
384384
"is_unsafe_pointer": true
385+
},
386+
"t5": {
387+
"init": "::brotli_sys::BROTLI_DECODER_NO_ERROR",
388+
"type": "::brotli_sys::BrotliDecoderErrorCode"
385389
}
386390
}

rules/brotli/src.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ using t1 = BrotliDecoderResult;
88
using t2 = BrotliEncoderMode;
99
using t3 = BrotliDecoderStateStruct *;
1010
using t4 = const BrotliDecoderStateStruct *;
11+
using t5 = BrotliDecoderErrorCode;
1112

1213
BrotliEncoderMode f1() { return BROTLI_MODE_FONT; }
1314

rules/brotli/tgt_unsafe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ fn types() {
66
let t2: ::brotli_sys::BrotliEncoderMode = ::brotli_sys::BROTLI_MODE_GENERIC;
77
let t3: *mut ::brotli_sys::BrotliDecoderState = std::ptr::null_mut();
88
let t4: *const ::brotli_sys::BrotliDecoderState = std::ptr::null();
9+
let t5: ::brotli_sys::BrotliDecoderErrorCode = ::brotli_sys::BROTLI_DECODER_NO_ERROR;
910
}
1011

1112
unsafe fn f1() -> ::brotli_sys::BrotliEncoderMode {

0 commit comments

Comments
 (0)