1616*/
1717
1818use super :: detect;
19- use crate :: core:: { StreamingBufferConfig , SuricataFileContext } ;
19+ use crate :: core:: SuricataFileContext ;
2020use crate :: direction:: Direction ;
21- use crate :: filecontainer:: FileContainer ;
2221use crate :: flow:: Flow ;
2322use crate :: http2:: http2:: HTTP2Transaction ;
2423use crate :: http2:: http2:: SURICATA_HTTP2_FILE_CONFIG ;
@@ -30,25 +29,22 @@ use nom7::combinator::{map_res, value};
3029use nom7:: error:: { make_error, ErrorKind } ;
3130use nom7:: { Err , IResult } ;
3231use std:: str:: FromStr ;
33- use suricata_sys:: sys:: { HttpRangeContainerBlock , SCHttpRangeContainerOpenFile , SCHttpRangeAppendData } ;
34-
35- // Defined in app-layer-htp-file.h
36- #[ allow( unused_doc_comments) ]
37- /// cbindgen:ignore
38- extern "C" {
39- #[ cfg( not( test) ) ]
40- pub fn SCHTPFileCloseHandleRange (
41- sbcfg : & StreamingBufferConfig , fc : * mut FileContainer , flags : u16 ,
42- c : * mut HttpRangeContainerBlock , data : * const u8 , data_len : u32 ,
43- ) -> bool ;
44- }
32+ use suricata_sys:: sys:: {
33+ HttpRangeContainerBlock , SCHttpRangeAppendData , SCHttpRangeContainerOpenFile ,
34+ } ;
4535
4636#[ cfg( test) ]
4737#[ allow( non_snake_case) ]
4838pub ( super ) unsafe fn SCHttpRangeFreeBlock ( _range : * mut HttpRangeContainerBlock ) { }
4939#[ cfg( not( test) ) ]
5040pub ( super ) use suricata_sys:: sys:: SCHttpRangeFreeBlock ;
5141
42+ #[ cfg( test) ]
43+ use crate :: core:: StreamingBufferConfig ;
44+ #[ cfg( test) ]
45+ use crate :: filecontainer:: FileContainer ;
46+ #[ cfg( not( test) ) ]
47+ pub ( super ) use suricata_sys:: sys:: SCHTPFileCloseHandleRange ;
5248#[ cfg( test) ]
5349#[ allow( non_snake_case) ]
5450pub ( super ) unsafe fn SCHTPFileCloseHandleRange (
0 commit comments