Lines Matching refs:key

231 	char *key;		     		/**< ASCII string */
500 const char *key;
505 dbus_message_iter_get_basic (&dict_entry_iter, &key);
521 p->key = strdup (key);
522 if (p->key == NULL)
569 free (p->key);
604 property_set_lookup (const LibHalPropertySet *set, const char *key)
609 LIBHAL_CHECK_PARAM_VALID(key, "*key", NULL);
612 if (strcmp (key, p->key) == 0)
621 * @key: name of property to inspect
629 libhal_ps_get_type (const LibHalPropertySet *set, const char *key)
634 LIBHAL_CHECK_PARAM_VALID(key, "*key", LIBHAL_PROPERTY_TYPE_INVALID);
636 p = property_set_lookup (set, key);
644 * @key: name of property to inspect
653 libhal_ps_get_string (const LibHalPropertySet *set, const char *key)
658 LIBHAL_CHECK_PARAM_VALID(key, "*key", NULL);
660 p = property_set_lookup (set, key);
669 * @key: name of property to inspect
676 libhal_ps_get_int32 (const LibHalPropertySet *set, const char *key)
681 LIBHAL_CHECK_PARAM_VALID(key, "*key", 0);
683 p = property_set_lookup (set, key);
692 * @key: name of property to inspect
699 libhal_ps_get_uint64 (const LibHalPropertySet *set, const char *key)
704 LIBHAL_CHECK_PARAM_VALID(key, "*key", 0);
706 p = property_set_lookup (set, key);
715 * @key: name of property to inspect
722 libhal_ps_get_double (const LibHalPropertySet *set, const char *key)
727 LIBHAL_CHECK_PARAM_VALID(key, "*key", 0.0);
729 p = property_set_lookup (set, key);
738 * @key: name of property to inspect
745 libhal_ps_get_bool (const LibHalPropertySet *set, const char *key)
750 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
752 p = property_set_lookup (set, key);
761 * @key: name of property to inspect
768 libhal_ps_get_strlist (const LibHalPropertySet *set, const char *key)
773 LIBHAL_CHECK_PARAM_VALID(key, "*key", NULL);
775 p = property_set_lookup (set, key);
847 * Get the key of a property.
856 return iter->cur_prop->key;
1024 char *key;
1042 dbus_message_iter_get_basic (&iter_struct, &key);
1050 key, removed,
1135 * @key: name of the property
1144 libhal_device_get_property_type (LibHalContext *ctx, const char *udi, const char *key, DBusError *error)
1154 LIBHAL_CHECK_PARAM_VALID(key, "*key", LIBHAL_PROPERTY_TYPE_INVALID);
1165 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1193 * @key: name of the property
1204 libhal_device_get_property_strlist (LibHalContext *ctx, const char *udi, const char *key, DBusError *error)
1214 LIBHAL_CHECK_PARAM_VALID(key, "*key", NULL);
1227 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1264 * @key: the name of the property
1275 const char *udi, const char *key, DBusError *error)
1286 LIBHAL_CHECK_PARAM_VALID(key, "*key", NULL);
1300 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1341 * @key: name of the property
1350 const char *udi, const char *key, DBusError *error)
1360 LIBHAL_CHECK_PARAM_VALID(key, "*key", -1);
1373 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1397 "of type integer\n", __FILE__, __LINE__, key,
1412 * @key: name of the property
1421 const char *udi, const char *key, DBusError *error)
1431 LIBHAL_CHECK_PARAM_VALID(key, "*key", -1);
1444 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1467 "of type integer\n", __FILE__, __LINE__, key,
1482 * @key: name of the property
1491 const char *udi, const char *key, DBusError *error)
1501 LIBHAL_CHECK_PARAM_VALID(key, "*key", -1.0);
1514 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1538 "of type double\n", __FILE__, __LINE__, key, udi);
1552 * @key: name of the property
1561 const char *udi, const char *key, DBusError *error)
1571 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1584 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1608 "of type bool\n", __FILE__, __LINE__, key, udi);
1623 const char *key,
1639 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1676 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1718 * @key: name of the property
1730 const char *key,
1736 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1739 return libhal_device_set_property_helper (ctx, udi, key,
1748 * @key: name of the property
1759 const char *key, dbus_int32_t value, DBusError *error)
1763 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1765 return libhal_device_set_property_helper (ctx, udi, key,
1774 * @key: name of the property
1785 const char *key, dbus_uint64_t value, DBusError *error)
1789 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1791 return libhal_device_set_property_helper (ctx, udi, key,
1800 * @key: name of the property
1811 const char *key, double value, DBusError *error)
1815 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1817 return libhal_device_set_property_helper (ctx, udi, key,
1826 * @key: name of the property
1837 const char *key, dbus_bool_t value, DBusError *error)
1841 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1843 return libhal_device_set_property_helper (ctx, udi, key,
1853 * @key: name of the property
1863 const char *udi, const char *key, DBusError *error)
1867 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1869 return libhal_device_set_property_helper (ctx, udi, key, DBUS_TYPE_INVALID,
1878 * @key: name of the property
1890 const char *key,
1900 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1913 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1937 * @key: name of the property
1949 const char *key,
1959 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
1972 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
1996 * @key: name of the property
2008 const char *key,
2018 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
2030 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
2054 * @key: name of the property
2066 const char *key,
2075 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
2088 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
2499 * @key: name of the property
2508 const char *udi, const char *key, DBusError *error)
2518 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
2531 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
2718 char *key;
2733 key = libhal_psi_get_key (&i);
2737 printf (" %s = '%s' (string)\n", key,
2741 printf (" %s = %d = 0x%x (int)\n", key,
2746 printf (" %s = %llu = 0x%llx (uint64)\n", key,
2751 printf (" %s = %s (bool)\n", key,
2756 printf (" %s = %g (double)\n", key,
2765 printf (" %s = [", key);
2776 printf (" *** unknown type for key %s\n", key);
2789 * @key: name of the property
2801 const char *key,
2811 LIBHAL_CHECK_PARAM_VALID(key, "*key", NULL);
2826 dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &key);
3824 char *key;
3901 * @key: key of property
3909 libhal_changeset_set_property_string (LibHalChangeSet *changeset, const char *key, const char *value)
3914 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
3920 elem->key = strdup (key);
3921 if (elem->key == NULL) {
3930 free (elem->key);
3944 * @key: key of property
3952 libhal_changeset_set_property_int (LibHalChangeSet *changeset, const char *key, dbus_int32_t value)
3957 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
3962 elem->key = strdup (key);
3963 if (elem->key == NULL) {
3980 * @key: key of property
3988 libhal_changeset_set_property_uint64 (LibHalChangeSet *changeset, const char *key, dbus_uint64_t value)
3993 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
3998 elem->key = strdup (key);
3999 if (elem->key == NULL) {
4016 * @key: key of property
4024 libhal_changeset_set_property_double (LibHalChangeSet *changeset, const char *key, double value)
4029 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
4034 elem->key = strdup (key);
4035 if (elem->key == NULL) {
4052 * @key: key of property
4060 libhal_changeset_set_property_bool (LibHalChangeSet *changeset, const char *key, dbus_bool_t value)
4065 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
4070 elem->key = strdup (key);
4071 if (elem->key == NULL) {
4088 * @key: key of property
4096 libhal_changeset_set_property_strlist (LibHalChangeSet *changeset, const char *key, const char **value)
4104 LIBHAL_CHECK_PARAM_VALID(key, "*key", FALSE);
4109 elem->key = strdup (key);
4110 if (elem->key == NULL) {
4122 free (elem->key);
4135 free (elem->key);
4206 dbus_message_iter_append_basic (&sub2, DBUS_TYPE_STRING, &(elem->key));
4311 free (elem->key);