Backed out changeset e05f5705283d (wrong name)
[unleashed.git] / usr / src / cmd / hal / utils / acpi.h
blob476f81b5b2f0c9857dc931c10295ec546d2f9a9e
1 /***************************************************************************
3 * acpi.h
5 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
6 * Use is subject to license terms.
8 * Licensed under the Academic Free License version 2.1
10 **************************************************************************/
12 #pragma ident "%Z%%M% %I% %E% SMI"
14 #ifndef ACPI_H
15 #define ACPI_H
17 #include "../hald/util.h"
19 #define BATTERY_POLL_TIMER 30000
21 gboolean battery_update(LibHalContext *ctx, const char *udi, int fd);
22 gboolean ac_adapter_update(LibHalContext *ctx, const char *udi, int fd);
23 gboolean lid_update(LibHalContext *ctx, const char *udi, int fd);
24 gboolean laptop_panel_update(LibHalContext *ctx, const char *udi, int fd);
25 gboolean update_devices(gpointer data);
26 int open_device(LibHalContext *ctx, char *udi);
28 #endif /* ACPI_H */