You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At some point, bindgen include ordering changed such that
AppLayerGetFileState was being bindgen'd as opaque, as the definition of
StreamBufferingConfig was not available when bindgen hit
AppLayerGetFileState, and bindgen processes in order.
Move the util includes before the app-layer includes to fix the ordering
problem, but still keep util includes grouped.
The sys diff is large as many things have been re-ordered.
letmut s = ::std::mem::MaybeUninit::<Self>::uninit();
1102
+
unsafe{
1103
+
::std::ptr::write_bytes(s.as_mut_ptr(),0,1);
1104
+
s.assume_init()
1105
+
}
1106
+
}
1107
+
}
1108
+
pubtypeFileContainer = FileContainer_;
1109
+
#[doc = " helper for the GetTxFilesFn. Not meant to be embedded as the config\n pointer is passed around in the API."]
1110
+
#[repr(C)]
1111
+
#[derive(Debug,Copy,Clone,PartialEq,Eq)]
1112
+
pubstructAppLayerGetFileState{
1113
+
pubfc:*mutFileContainer,
1114
+
pubcfg:*constStreamingBufferConfig,
1115
+
}
1116
+
implDefaultforAppLayerGetFileState{
1117
+
fndefault() -> Self{
1118
+
letmut s = ::std::mem::MaybeUninit::<Self>::uninit();
1119
+
unsafe{
1120
+
::std::ptr::write_bytes(s.as_mut_ptr(),0,1);
1121
+
s.assume_init()
1122
+
}
1123
+
}
1124
+
}
1125
+
extern"C"{
1126
+
#[doc = " \\brief Store a chunk of file data in the flow. The open \"flowfile\"\n will be used.\n\n\\param ffc the container\n\\param data data chunk\n\\param data_len data chunk len\n\n\\retval 0 ok\n\\retval -1 error"]
#[doc = " \\brief Open a new File\n\n\\param ffc flow container\n\\param sbcfg buffer config\n\\param name filename character array\n\\param name_len filename len\n\\param data initial data\n\\param data_len initial data len\n\\param flags open flags\n\n\\retval ff flowfile object\n\n\\note filename is not a string, so it's not nul terminated.\n\n If flags contains the FILE_USE_DETECT bit, the pruning code will\n consider not just the content_stored tracker, but also content_inspected.\n It's the responsibility of the API user to make sure this tracker is\n properly updated."]
#[doc = " \\brief Given a protocol name, checks if the parser is enabled in\n the conf file.\n\n\\param alproto_name Name of the app layer protocol.\n\n\\retval 1 If enabled.\n\\retval 0 If disabled."]
letmut s = ::std::mem::MaybeUninit::<Self>::uninit();
1546
-
unsafe{
1547
-
::std::ptr::write_bytes(s.as_mut_ptr(),0,1);
1548
-
s.assume_init()
1549
-
}
1550
-
}
1551
-
}
1552
-
pubtypeFileContainer = FileContainer_;
1553
-
#[doc = " helper for the GetTxFilesFn. Not meant to be embedded as the config\n pointer is passed around in the API."]
1554
-
#[repr(C)]
1555
-
#[derive(Debug,Copy,Clone,PartialEq,Eq)]
1556
-
pubstructAppLayerGetFileState{
1557
-
pubfc:*mutFileContainer,
1558
-
pubcfg:*constStreamingBufferConfig,
1559
-
}
1560
-
implDefaultforAppLayerGetFileState{
1561
-
fndefault() -> Self{
1562
-
letmut s = ::std::mem::MaybeUninit::<Self>::uninit();
1563
-
unsafe{
1564
-
::std::ptr::write_bytes(s.as_mut_ptr(),0,1);
1565
-
s.assume_init()
1566
-
}
1567
-
}
1568
-
}
1569
-
extern"C"{
1570
-
#[doc = " \\brief Store a chunk of file data in the flow. The open \"flowfile\"\n will be used.\n\n\\param ffc the container\n\\param data data chunk\n\\param data_len data chunk len\n\n\\retval 0 ok\n\\retval -1 error"]
#[doc = " \\brief Open a new File\n\n\\param ffc flow container\n\\param sbcfg buffer config\n\\param name filename character array\n\\param name_len filename len\n\\param data initial data\n\\param data_len initial data len\n\\param flags open flags\n\n\\retval ff flowfile object\n\n\\note filename is not a string, so it's not nul terminated.\n\n If flags contains the FILE_USE_DETECT bit, the pruning code will\n consider not just the content_stored tracker, but also content_inspected.\n It's the responsibility of the API user to make sure this tracker is\n properly updated."]
0 commit comments