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