Lines Matching refs:key

60 /** Max length of property key */
150 /** When merging, the key to store the value in */
271 * @param key Key of the property to compare
277 match_compare_property (HalDevice *d, const char *key, const char *right_side, dbus_int64_t *result)
284 if (!hal_device_has_property (d, key))
287 proptype = hal_device_property_get_type (d, key);
290 *result = (dbus_int64_t) strcmp (hal_device_property_get_string (d, key), right_side);
295 *result = ((dbus_int64_t) hal_device_property_get_int (d, key)) - strtoll (right_side, NULL, 0);
300 *result = ((dbus_int64_t) hal_device_property_get_uint64 (d, key)) - ((dbus_int64_t) strtoll (right_side, NULL, 0));
305 *result = (dbus_int64_t) ceil (hal_device_property_get_double (d, key) - atof (right_side));
323 * @param attr Attribute key/value pairs
332 const char *key;
341 if (strcmp (attr[0], "key") != 0)
343 key = attr[1];
345 /* Resolve key paths like 'someudi/foo/bar/baz:prop.name' '@prop.here.is.an.udi:with.prop.name' */
346 if (!resolve_udiprop_path (key,
350 HAL_ERROR (("Could not resolve keypath '%s' on udi '%s'", key, pc->device->udi));
371 /*HAL_INFO(("Checking that key='%s' is a string that "
372 "equals '%s'", key, value)); */
381 /*HAL_INFO (("*** string match for key %s", key));*/
391 /*HAL_INFO (("Checking that key='%s' is a int that equals %d",
392 key, value));*/
410 /*HAL_INFO (("Checking that key='%s' is a int that equals %d",
411 key, value));*/
433 /*HAL_INFO (("Checking that key='%s' is a bool that equals %s",
434 key, value ? "TRUE" : "FALSE"));*/
443 /*HAL_INFO (("*** bool match for key %s", key));*/
669 * @param attr Attribute key/value pairs
686 if (strcmp (attr[0], "key") != 0)
729 * @param attr Attribute key/value pairs
745 if (strcmp (attr[0], "key") != 0)
773 * @param attr Attribute key/value pairs
801 * @param attr Attribute key/value pairs
817 if (strcmp (attr[0], "key") != 0)
843 * @param attr Attribute key/value pairs
859 if (strcmp (attr[0], "key") != 0)
889 * @param attr Attribute key/value pairs
1163 /* Resolve key paths like 'someudi/foo/bar/baz:prop.name'
1271 /* covers <remove key="foobar" type="strlist">blah</remove> */
1274 /* only allow <remove key="foobar"/>, not <remove key="foobar">blah</remove> */