2
#ifndef __ACPID_DRIVER__
3
#define __ACPID_DRIVER__
8
int acpi_dbus_event(const char *hid, unsigned long event, unsigned long data);
16
struct acpi_channel_descriptor {
17
struct acpi_channel *channel;
21
struct acpi_channel_ops {
22
int (*setup)(struct acpi_channel *channel, struct acpi_channel_descriptor *cds, unsigned long ncds);
23
int (*handle)(struct acpi_channel *channel, lua_State *L, int fd, int events);
27
const struct acpi_channel_ops *ops;
31
int acpi_channel_create(lua_State *L);
32
void acpi_channel_register(struct acpi_channel *channel, const struct acpi_channel_ops *ops);
33
void acpi_channel_watch(struct acpi_channel *channel, struct acpi_channel_descriptor *cds, int fd, int events);
34
int acpi_channel_event(struct acpi_channel *channel, lua_State *L, const char *hid, unsigned long event, unsigned long data);
40
struct acpi_driver_ops {
41
int (*create)(struct acpi_channel *channel, lua_State *L);
42
void (*destroy)(struct acpi_channel *channnel);
47
const struct acpi_driver_ops ops;
50
void acpi_driver_register(const struct acpi_driver *driver);
51
const struct acpi_driver_ops *acpi_driver_find(const char *name);
53
#endif /* __ACPID_DRIVER__ */