#include "config.h"
#include "powersave_hal.h"
#include <string.h>
Functions | |
int | ps_hal_init () |
inits the access to hal | |
void | ps_hal_free () |
frees the access to hal | |
LibHalContext * | ps_hal_context () |
get the hal context used | |
DBusError * | ps_hal_dbus_error () |
get the dbus error used | |
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 | |
Variables | |
DBusError | dbus_error |
LibHalContext * | hal_ctx = NULL |
DBusConnection * | dbus_connection = NULL |
|
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
|
|
|
|
|
|
|