liblazy
Macros | Functions
liblazy_hal.c File Reference
#include "liblazy.h"
#include "liblazy_local.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

Macros

#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 More...
 
int liblazy_hal_get_property_int (const char *udi, const char *property, int *value)
 get integer property from HAL More...
 
int liblazy_hal_get_property_bool (const char *udi, const char *property, int *value)
 get boolean property from HAL More...
 
int liblazy_hal_get_property_strlist (const char *udi, const char *property, char ***strlist)
 get string list property from HAL More...
 
int liblazy_hal_query_capability (const char *udi, const char *capability)
 check if a device has a capability More...
 
int liblazy_hal_find_device_by_capability (const char *capability, char ***strlist)
 find devices with a given capability More...
 
int liblazy_hal_find_device_by_string_match (const char *key, const char *value, char ***strlist)
 find devices with given key and value More...
 
int liblazy_hal_is_caller_privileged (const char *privilege)
 check if a user possesses a privilege More...
 

Macro Definition Documentation

◆ DBUS_HAL_COMPUTER_PATH

#define DBUS_HAL_COMPUTER_PATH   "/org/freedesktop/Hal/devices/computer"

◆ DBUS_HAL_DEVICE_INTERFACE

#define DBUS_HAL_DEVICE_INTERFACE   "org.freedesktop.Hal.Device"

◆ DBUS_HAL_MANAGER_INTERFACE

#define DBUS_HAL_MANAGER_INTERFACE   "org.freedesktop.Hal.Manager"

◆ DBUS_HAL_MANAGER_PATH

#define DBUS_HAL_MANAGER_PATH   "/org/freedesktop/Hal/Manager"

◆ DBUS_HAL_SERVICE

#define DBUS_HAL_SERVICE   "org.freedesktop.Hal"

Function Documentation

◆ liblazy_hal_get_property()

static int liblazy_hal_get_property ( const char *  udi,
const char *  property,
const char *  method,
int  type,
void *  value 
)
static

◆ liblazy_hal_get_strlist_manager()

static int liblazy_hal_get_strlist_manager ( char ***  strlist,
const char *  method,
int  first_arg_type,
  ... 
)
static

◆ liblazy_hal_property_exists()

static int liblazy_hal_property_exists ( const char *  udi,
const char *  property 
)
static