Lines Matching defs:key

185 /** Merge all properties from source where the key starts with 
212 const char *key;
216 key = hal_property_get_key (p);
219 if (strncmp(key, source_namespace, source_ns_len) != 0)
223 key+source_ns_len);
228 target_type = hal_device_property_get_type (target, key);
230 hal_device_property_remove (target, key);
287 const char *key;
290 key = hal_property_get_key (p);
294 if (strcmp (key, "info.capabilities") == 0)
298 target_type = hal_device_property_get_type (target, key);
300 hal_device_property_remove (target, key);
306 target, key,
312 target, key,
318 target, key,
324 target, key,
330 target, key,
360 const char *key;
364 key = hal_property_get_key (p);
367 if (strncmp (key, namespace, len) != 0)
370 if (!hal_device_has_property (device2, key))
378 key)) != 0)
384 hal_device_property_get_int (device2, key))
390 hal_device_property_get_uint64 (device2, key))
396 hal_device_property_get_bool (device2, key))
402 hal_device_property_get_double (device2, key))
459 hal_device_has_property (HalDevice *device, const char *key)
462 g_return_val_if_fail (key != NULL, FALSE);
464 return hal_device_property_find (device, key) != NULL;
476 hal_device_property_find (HalDevice *device, const char *key)
481 g_return_val_if_fail (key != NULL, NULL);
486 if (strcmp (hal_property_get_key (p), key) == 0)
494 hal_device_property_to_string (HalDevice *device, const char *key)
498 prop = hal_device_property_find (device, key);
527 hal_device_property_get_type (HalDevice *device, const char *key)
532 g_return_val_if_fail (key != NULL, HAL_PROPERTY_TYPE_INVALID);
534 prop = hal_device_property_find (device, key);
543 hal_device_property_get_string (HalDevice *device, const char *key)
548 g_return_val_if_fail (key != NULL, NULL);
550 prop = hal_device_property_find (device, key);
559 hal_device_property_get_as_string (HalDevice *device, const char *key, char *buf, size_t bufsize)
564 g_return_val_if_fail (key != NULL, NULL);
567 prop = hal_device_property_find (device, key);
623 hal_device_property_get_int (HalDevice *device, const char *key)
628 g_return_val_if_fail (key != NULL, -1);
630 prop = hal_device_property_find (device, key);
639 hal_device_property_get_uint64 (HalDevice *device, const char *key)
644 g_return_val_if_fail (key != NULL, -1);
646 prop = hal_device_property_find (device, key);
655 hal_device_property_get_bool (HalDevice *device, const char *key)
660 g_return_val_if_fail (key != NULL, FALSE);
662 prop = hal_device_property_find (device, key);
671 hal_device_property_get_double (HalDevice *device, const char *key)
676 g_return_val_if_fail (key != NULL, -1.0);
678 prop = hal_device_property_find (device, key);
687 hal_device_property_set_string (HalDevice *device, const char *key,
693 prop = hal_device_property_find (device, key);
707 key, FALSE, FALSE);
711 prop = hal_property_new_string (key, value);
716 key, FALSE, TRUE);
723 hal_device_property_set_int (HalDevice *device, const char *key,
729 prop = hal_device_property_find (device, key);
742 key, FALSE, FALSE);
745 prop = hal_property_new_int (key, value);
750 key, FALSE, TRUE);
757 hal_device_property_set_uint64 (HalDevice *device, const char *key,
763 prop = hal_device_property_find (device, key);
776 key, FALSE, FALSE);
779 prop = hal_property_new_uint64 (key, value);
784 key, FALSE, TRUE);
791 hal_device_property_set_bool (HalDevice *device, const char *key,
797 prop = hal_device_property_find (device, key);
810 key, FALSE, FALSE);
813 prop = hal_property_new_bool (key, value);
818 key, FALSE, TRUE);
825 hal_device_property_set_double (HalDevice *device, const char *key,
831 prop = hal_device_property_find (device, key);
844 key, FALSE, FALSE);
847 prop = hal_property_new_double (key, value);
852 key, FALSE, TRUE);
894 hal_device_property_remove (HalDevice *device, const char *key)
898 prop = hal_device_property_find (device, key);
908 key, TRUE, FALSE);
915 const char *key,
921 prop = hal_device_property_find (device, key);
939 const char *key;
941 key = hal_property_get_key (p);
946 fprintf (stderr, " %s = '%s' (string)\n", key,
951 fprintf (stderr, " %s = %d 0x%x (int)\n", key,
957 fprintf (stderr, " %s = %llu 0x%llx (uint64)\n", key,
963 fprintf (stderr, " %s = %g (double)\n", key,
968 fprintf (stderr, " %s = %s (bool)\n", key,
983 char *key;
995 g_free (ai->key);
1003 prop_changed_cb (HalDevice *device, const char *key,
1008 if (strcmp (key, ai->key) != 0)
1037 const char *key,
1046 prop = hal_device_property_find (device, key);
1056 ai->key = g_strdup (key);
1087 const char *key)
1092 g_return_val_if_fail (key != NULL, NULL);
1094 prop = hal_device_property_find (device, key);
1104 const char *key,
1110 strlist = hal_device_property_get_strlist (device, key);
1123 const char *key,
1129 prop = hal_device_property_find (device, key);
1138 key, FALSE, FALSE);
1141 prop = hal_property_new_strlist (key);
1147 key, FALSE, TRUE);
1155 const char *key,
1161 prop = hal_device_property_find (device, key);
1170 key, FALSE, FALSE);
1173 prop = hal_property_new_strlist (key);
1179 key, FALSE, TRUE);
1187 const char *key,
1193 prop = hal_device_property_find (device, key);
1203 key, FALSE, FALSE);
1212 const char *key)
1217 prop = hal_device_property_find (device, key);
1220 prop = hal_property_new_strlist (key);
1225 key, FALSE, TRUE);
1235 key, FALSE, FALSE);
1245 const char *key,
1254 prop = hal_device_property_find (device, key);
1263 key, FALSE, FALSE);
1267 prop = hal_property_new_strlist (key);
1273 key, FALSE, TRUE);
1284 const char *key,
1290 prop = hal_device_property_find (device, key);
1300 key, FALSE, FALSE);
1308 const char *key)
1312 if ( hal_device_has_property (device, key)) {
1313 strlist = hal_device_property_get_strlist (device, key);