acpi.h revision 6573:7a725819f4fe
1/*************************************************************************** 2 * 3 * acpi.h 4 * 5 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 6 * Use is subject to license terms. 7 * 8 * Licensed under the Academic Free License version 2.1 9 * 10 **************************************************************************/ 11 12#pragma ident "%Z%%M% %I% %E% SMI" 13 14#ifndef ACPI_H 15#define ACPI_H 16 17#include "../hald/util.h" 18 19#define BATTERY_POLL_TIMER 30000 20 21gboolean battery_update(LibHalContext *ctx, const char *udi, int fd); 22gboolean ac_adapter_update(LibHalContext *ctx, const char *udi, int fd); 23gboolean lid_update(LibHalContext *ctx, const char *udi, int fd); 24gboolean laptop_panel_update(LibHalContext *ctx, const char *udi, int fd); 25gboolean update_devices(gpointer data); 26int open_device(LibHalContext *ctx, char *udi); 27 28#endif /* ACPI_H */ 29