00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef ACPID_H__
00023 #define ACPID_H__
00024
00025 #include <unistd.h>
00026 #include <syslog.h>
00027 #include <stdarg.h>
00028 #include <sys/types.h>
00029 #include <sys/stat.h>
00030
00031 #define ACPI_PROCDIR "/proc/acpi"
00032 #define ACPI_EVENTFILE ACPI_PROCDIR "/event"
00033 #define ACPI_CONFDIR "/etc/acpi/events"
00034 #define ACPI_LOGFILE "/var/log/acpid"
00035 #define ACPI_SOCKETFILE "/var/run/acpid.socket"
00036 #define ACPI_SOCKETMODE 0666
00037 #define ACPI_MAX_ERRS 5
00038
00039 #define PACKAGE "acpid"
00040
00041
00042
00043
00044 extern int acpid_debug;
00045 extern int acpid_log(const char *fmt, ...);
00046
00047
00048
00049
00050 extern int acpid_read_conf(const char *confdir);
00051 extern int acpid_add_client(int client, const char *origin);
00052 extern int acpid_cleanup_rules(void);
00053 extern int acpid_handle_event(const char *event);
00054
00055 #endif