powersave_hal.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *                         Powersave Daemon                                *
00004  *                                                                         *
00005  *            Copyright (C) 2005 SUSE Linux Products GmbH                  *
00006  *                                                                         *
00007  *             Author(s): Holger Macht <hmacht@suse.de>                    *
00008  *                                                                         *
00009  * This program is free software; you can redistribute it and/or modify it *
00010  * under the terms of the GNU General Public License as published by the   *
00011  * Free Software Foundation; either version 2 of the License, or (at you   *
00012  * option) any later version.                                              *
00013  *                                                                         *
00014  * This program is distributed in the hope that it will be useful, but     *
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of              *
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       *
00017  * General Public License for more details.                                *
00018  *                                                                         *
00019  * You should have received a copy of the GNU General Public License along *
00020  * with this program; if not, write to the Free Software Foundation, Inc., *
00021  * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA                  *
00022  *                                                                         *
00023  ***************************************************************************/
00024 
00025 #include "powerlib.h"
00026 
00027 #ifndef POWERSAVE_HAL_H
00028 #define POWERSAVE_HAL_H
00029 
00030 #define DBUS_API_SUBJECT_TO_CHANGE 1
00031 #include <hal/libhal.h>
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif /* __cplusplus */
00036 
00038 #define HAL_ERROR -7
00039 
00047 int ps_hal_init(void);
00048 
00054 void ps_hal_free(void);
00055 
00066 int ps_hal_get_property_int(char *device, char *property);
00067 
00078 int ps_hal_get_property_bool(char *device, char *property);
00079 
00090 char* ps_hal_get_property_string(char *device, char *property);
00091 
00099 int ps_hal_query_capability(char *device, char *capability);
00100 
00105 LibHalContext* ps_hal_context(void);
00106 
00111 DBusError* ps_hal_dbus_error(void);
00112 
00113 #ifdef __cplusplus
00114 }
00115 #endif /* __cplusplus */
00116 
00117 #endif                          /* POWERSAVE_HAL_H */

Generated on Mon Mar 27 09:27:19 2006 for Powersave Daemon by  doxygen 1.4.6