#include "liblazy.h"
#include "liblazy_local.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
Defines | |
#define | DBUS_HAL_SERVICE "org.freedesktop.Hal" |
#define | DBUS_HAL_DEVICE_INTERFACE "org.freedesktop.Hal.Device" |
#define | DBUS_HAL_MANAGER_PATH "/org/freedesktop/Hal/Manager" |
#define | DBUS_HAL_MANAGER_INTERFACE "org.freedesktop.Hal.Manager" |
#define | DBUS_HAL_COMPUTER_PATH "/org/freedesktop/Hal/devices/computer" |
Functions | |
static int | liblazy_hal_property_exists (const char *udi, const char *property) |
static int | liblazy_hal_get_property (const char *udi, const char *property, const char *method, int type, void *value) |
static int | liblazy_hal_get_strlist_manager (char ***strlist, const char *method, int first_arg_type,...) |
int | liblazy_hal_get_property_string (const char *udi, const char *property, char **value) |
get string property from HAL | |
int | liblazy_hal_get_property_int (const char *udi, const char *property, int *value) |
get integer property from HAL | |
int | liblazy_hal_get_property_bool (const char *udi, const char *property, int *value) |
get boolean property from HAL | |
int | liblazy_hal_get_property_strlist (const char *udi, const char *property, char ***strlist) |
get string list property from HAL | |
int | liblazy_hal_query_capability (const char *udi, const char *capability) |
check if a device has a capability | |
int | liblazy_hal_find_device_by_capability (const char *capability, char ***strlist) |
find devices with a given capability | |
int | liblazy_hal_find_device_by_string_match (const char *key, const char *value, char ***strlist) |
find devices with given key and value | |
int | liblazy_hal_is_caller_privileged (const char *privilege) |
check if a user possesses a privilege |
#define DBUS_HAL_COMPUTER_PATH "/org/freedesktop/Hal/devices/computer" |
Referenced by liblazy_hal_is_caller_privileged().
#define DBUS_HAL_DEVICE_INTERFACE "org.freedesktop.Hal.Device" |
#define DBUS_HAL_MANAGER_INTERFACE "org.freedesktop.Hal.Manager" |
Referenced by liblazy_hal_get_strlist_manager().
#define DBUS_HAL_MANAGER_PATH "/org/freedesktop/Hal/Manager" |
Referenced by liblazy_hal_get_strlist_manager().
#define DBUS_HAL_SERVICE "org.freedesktop.Hal" |
static int liblazy_hal_get_property | ( | const char * | udi, | |
const char * | property, | |||
const char * | method, | |||
int | type, | |||
void * | value | |||
) | [static] |
static int liblazy_hal_get_strlist_manager | ( | char *** | strlist, | |
const char * | method, | |||
int | first_arg_type, | |||
... | ||||
) | [static] |
static int liblazy_hal_property_exists | ( | const char * | udi, | |
const char * | property | |||
) | [static] |
References DBUS_HAL_DEVICE_INTERFACE, DBUS_HAL_SERVICE, liblazy_dbus_message_get_basic_arg(), liblazy_dbus_system_send_method_call(), and LIBLAZY_ERROR_INVALID_ARGUMENT.
Referenced by liblazy_hal_get_property_bool(), liblazy_hal_get_property_int(), liblazy_hal_get_property_string(), and liblazy_hal_get_property_strlist().