summaryrefslogtreecommitdiff
path: root/hald/solaris/probing/acpi.h
blob: 08c99c43dd2b4e48f80291ec944c58265c036024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/***************************************************************************
 *
 * acpi.h
 *
 * Copyright 2011 Andrew Stormont <andyjstormont@gmail.com>
 * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 *
 * Licensed under the Academic Free License version 2.1
 *
 **************************************************************************/

#ifndef ACPI_H
#define	ACPI_H

#include "../hald/util.h"

#define	BATTERY_POLL_TIMER		30000

gboolean battery_update(LibHalContext *ctx, const char *udi, int fd);
gboolean ac_adapter_update(LibHalContext *ctx, const char *udi, int fd);
gboolean lid_update(LibHalContext *ctx, const char *udi, int fd);
gboolean laptop_panel_update(LibHalContext *ctx, const char *udi, int fd);
gboolean update_devices(gpointer data);
int open_device(LibHalContext *ctx, char *udi);

#endif /* ACPI_H */