Lines Matching +defs:set +defs:buffer

117 	char **buffer;
120 buffer = (char **)malloc (sizeof (char *) * 8);
122 if (buffer == NULL)
125 buffer[0] = NULL;
131 buffer = realloc (buffer, sizeof (char *) * (count + 8));
132 if (buffer == NULL)
141 buffer[count] = str;
148 buffer = realloc (buffer, sizeof (char *) * (count + 1));
149 if (buffer == NULL)
153 buffer[count] = NULL;
156 return buffer;
183 * Represents a set of properties. Opaque; use the
187 unsigned int num_properties; /**< Number of properties in set */
261 * Returns: TRUE if user data was successfully set, FALSE if otherwise
277 * Returns: opaque pointer stored through libhal_ctx_set_user_data() or NULL if not set.
518 * @set: property-set to free
520 * Free a property set earlier obtained with libhal_device_get_all_properties().
523 libhal_free_property_set (LibHalPropertySet * set)
528 if (set == NULL)
531 for (p = set->properties_head; p != NULL; p = q) {
540 free (set);
545 * @set: property set to consider
547 * Get the number of properties in a property set.
549 * Returns: number of properties in given property set
552 libhal_property_set_get_num_elems (LibHalPropertySet *set)
557 if (set == NULL)
561 for (p = set->properties_head; p != NULL; p = p->next)
568 property_set_lookup (const LibHalPropertySet *set, const char *key)
572 LIBHAL_CHECK_PARAM_VALID(set, "*set", NULL);
575 for (p = set->properties_head; p != NULL; p = p->next)
584 * @set: property set
590 * LIBHAL_PROPERTY_TYPE_INVALID if property is not in the set
593 libhal_ps_get_type (const LibHalPropertySet *set, const char *key)
595 LibHalProperty *p = property_set_lookup (set, key);
597 LIBHAL_CHECK_PARAM_VALID(set, "*set", LIBHAL_PROPERTY_TYPE_INVALID);
600 p = property_set_lookup (set, key);
607 * @set: property set
613 * until libhal_free_property_set() is invoked on the property set
614 * this property belongs to. NULL if property is not in the set or not a string
617 libhal_ps_get_string (const LibHalPropertySet *set, const char *key)
621 LIBHAL_CHECK_PARAM_VALID(set, "*set", NULL);
624 p = property_set_lookup (set, key);
632 * @set: property set
640 libhal_ps_get_int32 (const LibHalPropertySet *set, const char *key)
644 LIBHAL_CHECK_PARAM_VALID(set, "*set", 0);
647 p = property_set_lookup (set, key);
655 * @set: property set
663 libhal_ps_get_uint64 (const LibHalPropertySet *set, const char *key)
667 LIBHAL_CHECK_PARAM_VALID(set, "*set", 0);
670 p = property_set_lookup (set, key);
678 * @set: property set
686 libhal_ps_get_double (const LibHalPropertySet *set, const char *key)
690 LIBHAL_CHECK_PARAM_VALID(set, "*set", 0.0);
693 p = property_set_lookup (set, key);
701 * @set: property set
709 libhal_ps_get_bool (const LibHalPropertySet *set, const char *key)
713 LIBHAL_CHECK_PARAM_VALID(set, "*set", FALSE);
716 p = property_set_lookup (set, key);
724 * @set: property set
729 * Returns: pointer to array of strings, this is owned by the property set
732 libhal_ps_get_strlist (const LibHalPropertySet *set, const char *key)
736 LIBHAL_CHECK_PARAM_VALID(set, "*set", NULL);
739 p = property_set_lookup (set, key);
749 * @set: property set to iterate over
751 * Initialize a property set iterator.
755 libhal_psi_init (LibHalPropertySetIterator * iter, LibHalPropertySet * set)
757 if (set == NULL)
760 iter->set = set;
762 iter->cur_prop = set->properties_head;
777 return iter->idx < iter->set->num_properties;
814 * until libhal_free_property_set() is invoked on the property set
830 * until libhal_free_property_set() is invoked on the property set
1684 * Returns: TRUE if the property was set, FALSE if the device didn't
1709 * Returns: TRUE if the property was set, FALSE if the device didn't
1731 * Returns: TRUE if the property was set, FALSE if the device didn't
1753 * Returns: TRUE if the property was set, FALSE if the device didn't
1775 * Returns: TRUE if the property was set, FALSE if the device didn't
1797 * Returns: TRUE if the property was set, FALSE if the device didn't
2289 * device list if the Persistent property is set to true.
2534 * @property_namespace: the namespace for set of devices, e.g. "usb"
2537 * Check a set of properties for two devices matches.
3072 * @ctx: context to set connection for
3077 * Returns: TRUE if connection was successfully set, FALSE otherwise
3110 * @ctx: Context for connection to hald (D-BUS connection should be set with libhal_ctx_set_dbus_connection)
3265 * Returns: TRUE if callback was successfully set, FALSE otherwise
3283 * Returns: TRUE if callback was successfully set, FALSE otherwise
3301 * Returns: TRUE if callback was successfully set, FALSE otherwise
3319 * Returns: TRUE if callback was successfully set, FALSE otherwise
3337 * Returns: TRUE if callback was successfully set, FALSE otherwise
3355 * Returns: TRUE if callback was successfully set, FALSE otherwise
3796 * @value: the value to set
3835 * @value: the value to set
3868 * @value: the value to set
3901 * @value: the value to set
3934 * @value: the value to set
3967 * @value: the value to set - NULL terminated array of strings