Lines Matching defs:set

214  * Represents a set of properties. Opaque; use the
218 unsigned int num_properties; /**< Number of properties in set */
292 * Returns: TRUE if user data was successfully set, FALSE if otherwise
308 * Returns: opaque pointer stored through libhal_ctx_set_user_data() or NULL if not set.
555 * @set: property-set to free
557 * Free a property set earlier obtained with libhal_device_get_all_properties().
560 libhal_free_property_set (LibHalPropertySet * set)
565 if (set == NULL)
568 for (p = set->properties_head; p != NULL; p = q) {
577 free (set);
582 * @set: property set to consider
584 * Get the number of properties in a property set.
586 * Returns: number of properties in given property set
589 libhal_property_set_get_num_elems (LibHalPropertySet *set)
594 LIBHAL_CHECK_PARAM_VALID(set, "*set", 0);
597 for (p = set->properties_head; p != NULL; p = p->next)
604 property_set_lookup (const LibHalPropertySet *set, const char *key)
608 LIBHAL_CHECK_PARAM_VALID(set, "*set", NULL);
611 for (p = set->properties_head; p != NULL; p = p->next)
620 * @set: property set
626 * LIBHAL_PROPERTY_TYPE_INVALID if property is not in the set
629 libhal_ps_get_type (const LibHalPropertySet *set, const char *key)
633 LIBHAL_CHECK_PARAM_VALID(set, "*set", LIBHAL_PROPERTY_TYPE_INVALID);
636 p = property_set_lookup (set, key);
643 * @set: property set
649 * until libhal_free_property_set() is invoked on the property set
650 * this property belongs to. NULL if property is not in the set or not a string
653 libhal_ps_get_string (const LibHalPropertySet *set, const char *key)
657 LIBHAL_CHECK_PARAM_VALID(set, "*set", NULL);
660 p = property_set_lookup (set, key);
668 * @set: property set
676 libhal_ps_get_int32 (const LibHalPropertySet *set, const char *key)
680 LIBHAL_CHECK_PARAM_VALID(set, "*set", 0);
683 p = property_set_lookup (set, key);
691 * @set: property set
699 libhal_ps_get_uint64 (const LibHalPropertySet *set, const char *key)
703 LIBHAL_CHECK_PARAM_VALID(set, "*set", 0);
706 p = property_set_lookup (set, key);
714 * @set: property set
722 libhal_ps_get_double (const LibHalPropertySet *set, const char *key)
726 LIBHAL_CHECK_PARAM_VALID(set, "*set", 0.0);
729 p = property_set_lookup (set, key);
737 * @set: property set
745 libhal_ps_get_bool (const LibHalPropertySet *set, const char *key)
749 LIBHAL_CHECK_PARAM_VALID(set, "*set", FALSE);
752 p = property_set_lookup (set, key);
760 * @set: property set
765 * Returns: pointer to array of strings, this is owned by the property set
768 libhal_ps_get_strlist (const LibHalPropertySet *set, const char *key)
772 LIBHAL_CHECK_PARAM_VALID(set, "*set", NULL);
775 p = property_set_lookup (set, key);
785 * @set: property set to iterate over
787 * Initialize a property set iterator.
791 libhal_psi_init (LibHalPropertySetIterator * iter, LibHalPropertySet * set)
793 if (set == NULL)
796 iter->set = set;
798 iter->cur_prop = set->properties_head;
813 return iter->idx < iter->set->num_properties;
850 * until libhal_free_property_set() is invoked on the property set
866 * until libhal_free_property_set() is invoked on the property set
1724 * Returns: TRUE if the property was set, FALSE if the device didn't
1754 * Returns: TRUE if the property was set, FALSE if the device didn't
1780 * Returns: TRUE if the property was set, FALSE if the device didn't
1806 * Returns: TRUE if the property was set, FALSE if the device didn't
1832 * Returns: TRUE if the property was set, FALSE if the device didn't
1858 * Returns: TRUE if the property was set, FALSE if the device didn't
2378 * device list if the Persistent property is set to true.
2625 * @property_namespace: the namespace for set of devices, e.g. "usb"
2628 * Check a set of properties for two devices matches.
3169 * @ctx: context to set connection for
3174 * Returns: TRUE if connection was successfully set, FALSE otherwise
3207 * @ctx: Context for connection to hald (D-BUS connection should be set with libhal_ctx_set_dbus_connection)
3362 * Returns: TRUE if callback was successfully set, FALSE otherwise
3380 * Returns: TRUE if callback was successfully set, FALSE otherwise
3398 * Returns: TRUE if callback was successfully set, FALSE otherwise
3416 * Returns: TRUE if callback was successfully set, FALSE otherwise
3434 * Returns: TRUE if callback was successfully set, FALSE otherwise
3452 * Returns: TRUE if callback was successfully set, FALSE otherwise
3902 * @value: the value to set
3945 * @value: the value to set
3981 * @value: the value to set
4017 * @value: the value to set
4053 * @value: the value to set
4089 * @value: the value to set - NULL terminated array of strings