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