@@ -1862,6 +1862,39 @@ extern "C" {
18621862 #[ doc = " \\ internal\n \n Run all registered flow init callbacks." ]
18631863 pub fn SCThreadRunInitCallbacks ( tv : * mut ThreadVars ) ;
18641864}
1865+ #[ repr( C ) ]
1866+ #[ derive( Debug , Default , Copy , Clone , PartialEq , Eq ) ]
1867+ pub struct SCThreadStorageId {
1868+ pub id : :: std:: os:: raw:: c_int ,
1869+ }
1870+ extern "C" {
1871+ pub fn SCThreadStorageSize ( ) -> :: std:: os:: raw:: c_uint ;
1872+ }
1873+ extern "C" {
1874+ pub fn SCThreadGetStorageById (
1875+ tv : * const ThreadVars , id : SCThreadStorageId ,
1876+ ) -> * mut :: std:: os:: raw:: c_void ;
1877+ }
1878+ extern "C" {
1879+ pub fn SCThreadSetStorageById (
1880+ tv : * mut ThreadVars , id : SCThreadStorageId , ptr : * mut :: std:: os:: raw:: c_void ,
1881+ ) -> :: std:: os:: raw:: c_int ;
1882+ }
1883+ extern "C" {
1884+ pub fn SCThreadFreeStorageById ( tv : * mut ThreadVars , id : SCThreadStorageId ) ;
1885+ }
1886+ extern "C" {
1887+ pub fn SCThreadFreeStorage ( tv : * mut ThreadVars ) ;
1888+ }
1889+ extern "C" {
1890+ pub fn SCRegisterThreadStorageTests ( ) ;
1891+ }
1892+ extern "C" {
1893+ pub fn SCThreadStorageRegister (
1894+ name : * const :: std:: os:: raw:: c_char ,
1895+ Free : :: std:: option:: Option < unsafe extern "C" fn ( arg1 : * mut :: std:: os:: raw:: c_void ) > ,
1896+ ) -> SCThreadStorageId ;
1897+ }
18651898extern "C" {
18661899 pub fn SCSRepCatGetByShortname ( shortname : * const :: std:: os:: raw:: c_char ) -> u8 ;
18671900}
0 commit comments