| 1 | #pragma once |
| 2 | |
| 3 | #include <uacpi/types.h> |
| 4 | |
| 5 | #ifdef __cplusplus |
| 6 | extern "C" { |
| 7 | #endif |
| 8 | |
| 9 | #ifndef UACPI_BAREBONES_MODE |
| 10 | |
| 11 | /** |
| 12 | * Install a Notify() handler to a device node. |
| 13 | * A handler installed to the root node will receive all notifications, even if |
| 14 | * a device already has a dedicated Notify handler. |
| 15 | * 'handler_context' is passed to the handler on every invocation. |
| 16 | */ |
| 17 | uacpi_status uacpi_install_notify_handler( |
| 18 | uacpi_namespace_node *node, uacpi_notify_handler handler, |
| 19 | uacpi_handle handler_context |
| 20 | ); |
| 21 | |
| 22 | uacpi_status uacpi_uninstall_notify_handler( |
| 23 | uacpi_namespace_node *node, uacpi_notify_handler handler |
| 24 | ); |
| 25 | |
| 26 | #endif // !UACPI_BAREBONES_MODE |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | } |
| 30 | #endif |
| 31 | |