#include "powerlib.h"
#include <hal/libhal.h>
Go to the source code of this file.
Defines | |
#define | DBUS_API_SUBJECT_TO_CHANGE 1 |
#define | HAL_ERROR -7 |
error for hal connect error | |
Functions | |
int | ps_hal_init (void) |
inits the access to hal | |
void | ps_hal_free (void) |
frees the access to hal | |
int | ps_hal_get_property_int (char *device, char *property) |
int | ps_hal_get_property_bool (char *device, char *property) |
char * | ps_hal_get_property_string (char *device, char *property) |
int | ps_hal_query_capability (char *device, char *capability) |
query a capability of a device | |
LibHalContext * | ps_hal_context (void) |
get the hal context used | |
DBusError * | ps_hal_dbus_error (void) |
get the dbus error used |
|
|
|
error for hal connect error
|
|
get the hal context used
|
|
get the dbus error used
|
|
frees the access to hal the free includes any dbus connection, dbus errors or hal contexts call this inside your application as soon as the hal service disappears |
|
brief get bool property through hal fetches one bool value through hal. Throws a dbus error with error message if needed.
|
|
brief get integer property through hal fetches one interger value through hal. Throws a dbus error with error message if needed.
|
|
brief get string property through hal fetches one string value through hal. Throws a dbus error with error message if needed.
|
|
inits the access to hal if hal context is already initialized, does nothing.
|
|
query a capability of a device
|