Lines Matching defs:device

49  * @brief Parsing of device info files
71 /** Processing a device element */
121 HalDevice *device;
156 /** Set to #TRUE if a device is matched */
170 * @param source_udi UDI of source device
261 /* Compare the value of a property on a hal device object against a string value
270 * @param d hal device object
324 * @return #FALSE if the device in question didn't
347 pc->device->udi,
350 HAL_ERROR (("Could not resolve keypath '%s' on udi '%s'", key, pc->device->udi));
359 HAL_ERROR (("Could not find device with udi '%s'", udi_to_check));
918 "inside <device> and <match>",
939 "inside <device> and <match>",
956 "inside <device> and <match>",
973 "inside <device> and <match>",
990 "inside <device> and <match>",
1007 "inside <device> and <match>",
1020 } else if (strcmp (el, "device") == 0) {
1022 HAL_ERROR (("%s:%d:%d: Element <device> can only be "
1078 /* Move from temporary to global device store */
1100 /* As soon as we are merging, we have matched the device... */
1105 hal_device_property_set_string (pc->device, pc->merge_key, pc->cdata_buf);
1110 int type = hal_device_property_get_type (pc->device, pc->merge_key);
1112 hal_device_property_remove (pc->device, pc->merge_key);
1113 hal_device_property_strlist_append (pc->device, pc->merge_key, pc->cdata_buf);
1127 hal_device_property_set_int (pc->device,
1141 hal_device_property_set_uint64 (pc->device,
1147 hal_device_property_set_bool (pc->device, pc->merge_key,
1154 hal_device_property_set_double (pc->device, pc->merge_key,
1167 pc->device->udi,
1170 HAL_ERROR (("Could not resolve keypath '%s' on udi '%s'", pc->cdata_buf, pc->device->udi));
1179 HAL_ERROR (("Could not find device with udi '%s'", udi_to_merge_from));
1181 hal_device_copy_property (d, prop_to_merge, pc->device, pc->merge_key);
1193 (hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_STRING ||
1194 hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_STRLIST ||
1195 hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_INVALID)) {
1199 /* As soon as we are appending, we have matched the device... */
1203 hal_device_property_strlist_append (pc->device, pc->merge_key, pc->cdata_buf);
1213 hal_device_property_get_as_string (pc->device, pc->cdata_buf, buf, sizeof (buf));
1221 existing_string = hal_device_property_get_string (pc->device, pc->merge_key);
1228 hal_device_property_set_string (pc->device, pc->merge_key, buf2);
1231 (hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_STRING ||
1232 hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_STRLIST ||
1233 hal_device_property_get_type (pc->device, pc->merge_key) == HAL_PROPERTY_TYPE_INVALID)) {
1237 /* As soon as we are prepending, we have matched the device... */
1241 hal_device_property_strlist_prepend (pc->device, pc->merge_key, pc->cdata_buf);
1251 hal_device_property_get_as_string (pc->device, pc->cdata_buf, buf, sizeof (buf));
1259 existing_string = hal_device_property_get_string (pc->device, pc->merge_key);
1266 hal_device_property_set_string (pc->device, pc->merge_key, buf2);
1272 hal_device_property_strlist_remove (pc->device, pc->merge_key, pc->cdata_buf);
1276 hal_device_property_remove (pc->device, pc->merge_key);
1287 HAL_INFO (("Spawning new device object '%s' caused by <spawn> on udi '%s'",
1288 pc->merge_key, pc->device->udi));
1293 hal_device_property_set_string (spawned, "info.parent", pc->device->udi);
1306 hal_device_property_strlist_clear (pc->device, pc->merge_key);
1355 /** Process a device information info file.
1359 * @param device Device to match on
1360 * @return #TRUE if file matched device and information
1365 HalDevice * device)
1428 parsing_context->device = device;
1576 /** Search the device info file repository for a .fdi file to merge
1577 * more information into the device object.
1636 HAL_ERROR (("Bogus device information type %d", type));