Main Page | Class List | File List | Class Members | File Members

acpid.h

Go to the documentation of this file.
00001 /*
00002  *  acpid.h - ACPI daemon
00003  *
00004  *  Copyright (C) 1999-2000 Andrew Henroid
00005  *  Copyright (C) 2001 Sun Microsystems (thockin@sun.com)
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; either version 2 of the License, or
00010  *  (at your option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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  * acpid.c
00043  */
00044 extern int acpid_debug;
00045 extern int acpid_log(const char *fmt, ...);
00046 
00047 /*
00048  * event.c
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 /* ACPID_H__ */

© sourcejam.com 2005-2008