Lines Matching refs:fun
45 X_PFX (hook_add) (x_list *lst, x_hook_function *fun, void *data)
47 return X_PFX (list_prepend) (lst, CELL_NEW (fun, data));
51 X_PFX (hook_remove) (x_list *lst, x_hook_function *fun, void *data)
59 if (CELL_FUN (cell) == fun && CELL_DATA (cell) == data)
78 x_hook_function **fun;
86 fun = malloc(sizeof (x_hook_function *) * length);
89 if(!fun || !data) {
96 fun[i] = CELL_FUN (cell);
102 (*fun[i]) (arg, data[i]);
105 free(fun);