Lines Matching refs:hook
34 CARDHookContext hook[1]; member
89 FSEventHook *hook = *pp; in FSi_SystemEvents() local
90 if ((hook->arc == target) && (hook->callback != NULL)) in FSi_SystemEvents()
92 (*hook->callback)(hook->userdata, fsevent, argument); in FSi_SystemEvents()
94 if (*pp == hook) in FSi_SystemEvents()
114 void FS_RegisterEventHook(const char *arcname, FSEventHook *hook, FSEventFunction callback, void *u… in FS_RegisterEventHook() argument
122 if (!context->hook->callback) in FS_RegisterEventHook()
124 CARDi_RegisterHook(context->hook, FSi_SystemEvents, context); in FS_RegisterEventHook()
126 hook->callback = callback; in FS_RegisterEventHook()
127 hook->userdata = userdata; in FS_RegisterEventHook()
128 hook->arc = arc; in FS_RegisterEventHook()
129 hook->next = context->chain; in FS_RegisterEventHook()
130 context->chain = hook; in FS_RegisterEventHook()
144 void FS_UnregisterEventHook(FSEventHook *hook) in FS_UnregisterEventHook() argument
151 if (*pp == hook) in FS_UnregisterEventHook()