Skip to main content

deletehookfunc

Function deletehookfunc 

Source
pub fn deletehookfunc(n: &str, f: Hookfn) -> i32
Expand description

Port of int deletehookfunc(const char *n, Hookfn f) from Src/module.c:977.

C body (c:977-984):

int deletehookfunc(const char *n, Hookfn f) {
    Hookdef h = gethookdef(n);
    if (h) return deletehookdeffunc(h, f);
    return 1;
}