UDI manual hardware
[Implementation internals]


Functions

static void prop2hd (hd_data_t *hd_data, hd_t *hd, int status_only)
static hal_prop_thal_get_new (hal_prop_t **list, const char *key)
static void hd2prop_add_int32 (hal_prop_t **list, const char *key, int32_t i)
static void hd2prop_add_str (hal_prop_t **list, const char *key, const char *str)
static void hd2prop_add_list (hal_prop_t **list, const char *key, str_list_t *sl)
static void hd2prop_append_list (hal_prop_t **list, const char *key, char *str)
static void hd2prop (hd_data_t *hd_data, hd_t *hd)
static hal_prop_thd_manual_read_entry_old (const char *id)
static hal_prop_tread_properties (hd_data_t *hd_data, const char *udi, const char *id)
void hd_scan_manual (hd_data_t *hd_data)
void hd_scan_manual2 (hd_data_t *hd_data)
char * hd_status_value_name (hd_status_value_t status)
hd_manual_thd_manual_read_entry (hd_data_t *hd_data, const char *id)
int hd_manual_write_entry (hd_data_t *hd_data, hd_manual_t *entry)
char * prop2hd_str (hal_prop_t *prop, const char *id)
int32_t prop2hd_int32 (hal_prop_t *prop, const char *id)
str_list_tprop2hd_list (hal_prop_t *prop, const char *id)
hd_thd_read_config (hd_data_t *hd_data, const char *id)
int hd_write_config (hd_data_t *hd_data, hd_t *hd)

Variables

static hash_t status_names []

Detailed Description

Manual hardware information functions (/var/lib/hardware/udi/)

Function Documentation

hal_prop_t * hal_get_new ( hal_prop_t **  list,
const char *  key 
) [static]

void hd2prop ( hd_data_t hd_data,
hd_t hd 
) [static]

void hd2prop_add_int32 ( hal_prop_t **  list,
const char *  key,
int32_t  i 
) [static]

void hd2prop_add_list ( hal_prop_t **  list,
const char *  key,
str_list_t sl 
) [static]

void hd2prop_add_str ( hal_prop_t **  list,
const char *  key,
const char *  str 
) [static]

void hd2prop_append_list ( hal_prop_t **  list,
const char *  key,
char *  str 
) [static]

hd_manual_t* hd_manual_read_entry ( hd_data_t hd_data,
const char *  id 
)

Manually configured devices implemented in manual.c

hal_prop_t * hd_manual_read_entry_old ( const char *  id  )  [static]

int hd_manual_write_entry ( hd_data_t hd_data,
hd_manual_t entry 
)

hd_t* hd_read_config ( hd_data_t hd_data,
const char *  id 
)

void hd_scan_manual ( hd_data_t hd_data  ) 

void hd_scan_manual2 ( hd_data_t hd_data  ) 

char* hd_status_value_name ( hd_status_value_t  status  ) 

int hd_write_config ( hd_data_t hd_data,
hd_t hd 
)

void prop2hd ( hd_data_t hd_data,
hd_t hd,
int  status_only 
) [static]

int32_t prop2hd_int32 ( hal_prop_t prop,
const char *  id 
)

str_list_t* prop2hd_list ( hal_prop_t prop,
const char *  id 
)

char* prop2hd_str ( hal_prop_t prop,
const char *  id 
)

hal_prop_t * read_properties ( hd_data_t hd_data,
const char *  udi,
const char *  id 
) [static]


Variable Documentation

hash_t status_names[] [static]

Initial value:

 {
  { status_no,      "no"      },
  { status_yes,     "yes"     },
  { status_unknown, "unknown" },
  { status_new,     "new"     },
  { 0,              NULL      }
}