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