Arathorn | d69540a | 2023-11-02 21:43:37 +0100 | [diff] [blame^] | 1 | |
| 2 | HIsHookConsumer() |
| 3 | ***************** |
| 4 | |
| 5 | |
| 6 | FUNKTION |
| 7 | ======== |
| 8 | |
| 9 | int HIsHookConsumer(int hookid, object|closure consumer) |
| 10 | |
| 11 | |
| 12 | DEFINIERT IN |
| 13 | ============ |
| 14 | |
| 15 | /std/hook_provider.c /sys/hook.h |
| 16 | |
| 17 | |
| 18 | ARGUMENTE |
| 19 | ========= |
| 20 | |
| 21 | * hookid: gibt den Hook-Typ an |
| 22 | |
| 23 | * consumer: Objekt oder Closure. Wenn ein Objekt uebergeben wird, |
| 24 | wird eine Closure auf HookCallback() an diesem Objekt erstellt. |
| 25 | |
| 26 | |
| 27 | BESCHREIBUNG |
| 28 | ============ |
| 29 | |
| 30 | Prueft, ob eine Closure als consumer fuer einen bestimmten Hook |
| 31 | eingetragen ist. |
| 32 | |
| 33 | |
| 34 | RUECKGABEWERTE |
| 35 | ============== |
| 36 | |
| 37 | 1 : Closure ist als consumer registriert |
| 38 | |
| 39 | 0 : Closure nicht als Konsument gefunden |
| 40 | |
| 41 | |
| 42 | SIEHE AUCH |
| 43 | ========== |
| 44 | |
| 45 | HRegisterToHook(), HUnregisterFromHook(), HookCallback() |
| 46 | |
| 47 | Letzte Aenderung: 08.10.2022, Bugfix |