Lines Matching defs:nd
75 int add_properties(LibHalContext *hal_ctx, new_dev_t *nd, lh_prop_t *prop);
545 int add_properties(LibHalContext *hal_ctx, new_dev_t *nd, lh_prop_t *prop)
560 old_type = libhal_device_get_property_type(hal_ctx, nd->real_udi, p->key, &error);
565 if (!libhal_device_remove_property(hal_ctx, nd->real_udi, p->key, &error)) {
576 if (!libhal_device_set_property_bool(hal_ctx, nd->real_udi, p->key, p->v.bool_value, &error)) {
583 if (!libhal_device_set_property_int(hal_ctx, nd->real_udi, p->key, p->v.int_value, &error)) {
590 if (!libhal_device_set_property_uint64(hal_ctx, nd->real_udi, p->key, p->v.uint64_value, &error)) {
597 if (!libhal_device_set_property_double(hal_ctx, nd->real_udi, p->key, p->v.double_value, &error)) {
605 if (!libhal_device_set_property_string(hal_ctx, nd->real_udi, p->key, p->v.str_value, &error)) {
613 if (!libhal_device_property_strlist_append(hal_ctx, nd->real_udi, p->key, *s, &error)) {
626 if (udi2 && !nd->udi)
627 nd->udi = strdup(udi2);