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 #ifndef ACPI_H 13 #define ACPI_H 14 15 #include "../hald/util.h" 16 17 #define BATTERY_POLL_TIMER 30000 18 19 gboolean battery_update(LibHalContext *ctx, const char *udi, int fd); 20 gboolean ac_adapter_update(LibHalContext *ctx, const char *udi, int fd); 21 gboolean lid_update(LibHalContext *ctx, const char *udi, int fd); 22 gboolean laptop_panel_update(LibHalContext *ctx, const char *udi, int fd); 23 gboolean update_devices(gpointer data); 24 int open_device(LibHalContext *ctx, char *udi); 25 26 #endif /* ACPI_H */ 27