Skip to content

Commit b11cbf1

Browse files
committed
Update generated sys.rs file
1 parent 967bf4b commit b11cbf1

1 file changed

Lines changed: 66 additions & 66 deletions

File tree

libclamav_rust/src/sys.rs

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -301,66 +301,15 @@ extern "C" {
301301
#[doc = " @brief Get the Functionality Level (FLEVEL).\n\n @return unsigned int The FLEVEL."]
302302
pub fn cl_retflevel() -> ::std::os::raw::c_uint;
303303
}
304-
pub type fmap_t = cl_fmap_t;
305304
#[repr(C)]
306305
#[derive(Debug, Copy, Clone)]
307-
pub struct cl_fmap {
308-
pub handle: *mut ::std::os::raw::c_void,
309-
pub pread_cb: clcb_pread,
310-
pub data: *const ::std::os::raw::c_void,
311-
pub mtime: u64,
312-
pub pages: u64,
313-
pub pgsz: u64,
314-
pub paged: u64,
315-
pub aging: bool,
316-
#[doc = " Indicates if we should age off memory mapped pages"]
317-
pub dont_cache_flag: bool,
318-
#[doc = " Indicates if we should not cache scan results for this fmap. Used if limits exceeded"]
319-
pub handle_is_fd: bool,
320-
#[doc = " Non-zero if `map->handle` is an fd. This is needed so that `fmap_fd()` knows if it can\nreturn a file descriptor. If it's some other kind of handle, then `fmap_fd()` has to return -1."]
321-
pub offset: usize,
322-
#[doc = " File offset representing start of original fmap, if the fmap created reading from a file starting at offset other than 0.\n`offset` & `len` are critical information for anyone using the file descriptor/handle"]
323-
pub nested_offset: usize,
324-
#[doc = " Offset from start of original fmap (data) for nested scan. 0 for orig fmap."]
325-
pub real_len: usize,
326-
#[doc = " Length from start of original fmap (data) to end of current (possibly nested) map.\n`real_len == nested_offset + len`.\n`real_len` is needed for nested maps because we only reference the original mapping data.\nWe convert caller's fmap offsets & lengths to real data offsets using `nested_offset` & `real_len`."]
327-
pub len: usize,
328-
#[doc = " Length of data from nested_offset, accessible via current fmap"]
329-
pub unmap: ::std::option::Option<unsafe extern "C" fn(arg1: *mut fmap_t)>,
330-
pub need: ::std::option::Option<
331-
unsafe extern "C" fn(
332-
arg1: *mut fmap_t,
333-
at: usize,
334-
len: usize,
335-
lock: ::std::os::raw::c_int,
336-
) -> *const ::std::os::raw::c_void,
337-
>,
338-
pub need_offstr: ::std::option::Option<
339-
unsafe extern "C" fn(
340-
arg1: *mut fmap_t,
341-
at: usize,
342-
len_hint: usize,
343-
) -> *const ::std::os::raw::c_void,
344-
>,
345-
pub gets: ::std::option::Option<
346-
unsafe extern "C" fn(
347-
arg1: *mut fmap_t,
348-
dst: *mut ::std::os::raw::c_char,
349-
at: *mut usize,
350-
max_len: usize,
351-
) -> *const ::std::os::raw::c_void,
352-
>,
353-
pub unneed_off:
354-
::std::option::Option<unsafe extern "C" fn(arg1: *mut fmap_t, at: usize, len: usize)>,
355-
pub windows_file_handle: *mut ::std::os::raw::c_void,
356-
pub windows_map_handle: *mut ::std::os::raw::c_void,
357-
pub will_need_hash: [bool; 3usize],
358-
pub have_hash: [bool; 3usize],
359-
pub hash: [[u8; 32usize]; 3usize],
360-
pub bitmap: *mut u64,
361-
pub name: *mut ::std::os::raw::c_char,
362-
pub path: *mut ::std::os::raw::c_char,
306+
pub struct image_fuzzy_hash {
307+
pub hash: [u8; 8usize],
363308
}
309+
pub type image_fuzzy_hash_t = image_fuzzy_hash;
310+
pub type evidence_t = *mut ::std::os::raw::c_void;
311+
pub type onedump_t = *mut ::std::os::raw::c_void;
312+
pub type cvd_t = *mut ::std::os::raw::c_void;
364313
pub const cli_file_CL_TYPE_ANY: cli_file = 0;
365314
pub const cli_file_CL_TYPE_TEXT_ASCII: cli_file = 500;
366315
pub const cli_file_CL_TYPE_TEXT_UTF8: cli_file = 501;
@@ -468,15 +417,6 @@ pub struct cli_ftype {
468417
pub struct json_object {
469418
_unused: [u8; 0],
470419
}
471-
#[repr(C)]
472-
#[derive(Debug, Copy, Clone)]
473-
pub struct image_fuzzy_hash {
474-
pub hash: [u8; 8usize],
475-
}
476-
pub type image_fuzzy_hash_t = image_fuzzy_hash;
477-
pub type evidence_t = *mut ::std::os::raw::c_void;
478-
pub type onedump_t = *mut ::std::os::raw::c_void;
479-
pub type cvd_t = *mut ::std::os::raw::c_void;
480420
pub type mpool_t = ::std::os::raw::c_void;
481421
#[repr(C)]
482422
#[derive(Debug, Copy, Clone)]
@@ -493,6 +433,66 @@ pub struct cli_dconf {
493433
pub stats: u32,
494434
pub pcre: u32,
495435
}
436+
pub type fmap_t = cl_fmap_t;
437+
#[repr(C)]
438+
#[derive(Debug, Copy, Clone)]
439+
pub struct cl_fmap {
440+
pub handle: *mut ::std::os::raw::c_void,
441+
pub pread_cb: clcb_pread,
442+
pub data: *const ::std::os::raw::c_void,
443+
pub mtime: u64,
444+
pub pages: u64,
445+
pub pgsz: u64,
446+
pub paged: u64,
447+
pub aging: bool,
448+
#[doc = " Indicates if we should age off memory mapped pages"]
449+
pub dont_cache_flag: bool,
450+
#[doc = " Indicates if we should not cache scan results for this fmap. Used if limits exceeded"]
451+
pub handle_is_fd: bool,
452+
#[doc = " Non-zero if `map->handle` is an fd. This is needed so that `fmap_fd()` knows if it can\nreturn a file descriptor. If it's some other kind of handle, then `fmap_fd()` has to return -1."]
453+
pub offset: usize,
454+
#[doc = " File offset representing start of original fmap, if the fmap created reading from a file starting at offset other than 0.\n`offset` & `len` are critical information for anyone using the file descriptor/handle"]
455+
pub nested_offset: usize,
456+
#[doc = " Offset from start of original fmap (data) for nested scan. 0 for orig fmap."]
457+
pub real_len: usize,
458+
#[doc = " Length from start of original fmap (data) to end of current (possibly nested) map.\n`real_len == nested_offset + len`.\n`real_len` is needed for nested maps because we only reference the original mapping data.\nWe convert caller's fmap offsets & lengths to real data offsets using `nested_offset` & `real_len`."]
459+
pub len: usize,
460+
#[doc = " Length of data from nested_offset, accessible via current fmap"]
461+
pub unmap: ::std::option::Option<unsafe extern "C" fn(arg1: *mut fmap_t)>,
462+
pub need: ::std::option::Option<
463+
unsafe extern "C" fn(
464+
arg1: *mut fmap_t,
465+
at: usize,
466+
len: usize,
467+
lock: ::std::os::raw::c_int,
468+
) -> *const ::std::os::raw::c_void,
469+
>,
470+
pub need_offstr: ::std::option::Option<
471+
unsafe extern "C" fn(
472+
arg1: *mut fmap_t,
473+
at: usize,
474+
len_hint: usize,
475+
) -> *const ::std::os::raw::c_void,
476+
>,
477+
pub gets: ::std::option::Option<
478+
unsafe extern "C" fn(
479+
arg1: *mut fmap_t,
480+
dst: *mut ::std::os::raw::c_char,
481+
at: *mut usize,
482+
max_len: usize,
483+
) -> *const ::std::os::raw::c_void,
484+
>,
485+
pub unneed_off:
486+
::std::option::Option<unsafe extern "C" fn(arg1: *mut fmap_t, at: usize, len: usize)>,
487+
pub windows_file_handle: *mut ::std::os::raw::c_void,
488+
pub windows_map_handle: *mut ::std::os::raw::c_void,
489+
pub will_need_hash: [bool; 3usize],
490+
pub have_hash: [bool; 3usize],
491+
pub hash: [[u8; 32usize]; 3usize],
492+
pub bitmap: *mut u64,
493+
pub name: *mut ::std::os::raw::c_char,
494+
pub path: *mut ::std::os::raw::c_char,
495+
}
496496
#[repr(C)]
497497
#[derive(Debug, Copy, Clone)]
498498
pub struct regex_t {

0 commit comments

Comments
 (0)