Bring in line with new Rust code naming for FFI functions.
}
#[no_mangle]
-pub unsafe extern "C" fn rs_detect_iprep_parse(
+pub unsafe extern "C" fn SCDetectIPRepParse(
ustr: *const std::os::raw::c_char,
) -> *mut DetectIPRepData {
let ft_name: &CStr = CStr::from_ptr(ustr); //unsafe
}
#[no_mangle]
-pub unsafe extern "C" fn rs_detect_iprep_free(ctx: &mut DetectIPRepData) {
+pub unsafe extern "C" fn SCDetectIPRepFree(ctx: &mut DetectIPRepData) {
// Just unbox...
std::mem::drop(Box::from_raw(ctx));
}
int DetectIPRepSetup (DetectEngineCtx *de_ctx, Signature *s, const char *rawstr)
{
- DetectIPRepData *cd = rs_detect_iprep_parse(rawstr);
+ DetectIPRepData *cd = SCDetectIPRepParse(rawstr);
if (cd == NULL) {
SCLogError("\"%s\" is not a valid setting for iprep", rawstr);
goto error;
if (fd == NULL)
return;
- rs_detect_iprep_free(fd);
+ SCDetectIPRepFree(fd);
}
#ifdef UNITTESTS