Lines Matching defs:changeset
3747 * Request a new changeset object. Used for changing multiple properties at once. Useful when
3750 * Returns: A new changeset object or NULL on error
3755 LibHalChangeSet *changeset;
3757 changeset = calloc (1, sizeof (LibHalChangeSet));
3758 if (changeset == NULL)
3761 changeset->udi = strdup (udi);
3762 if (changeset->udi == NULL) {
3763 free (changeset);
3764 changeset = NULL;
3768 changeset->head = NULL;
3769 changeset->tail = NULL;
3772 return changeset;
3776 libhal_changeset_append (LibHalChangeSet *changeset, LibHalChangeSetElement *elem)
3778 if (changeset->head == NULL) {
3779 changeset->head = elem;
3780 changeset->tail = elem;
3784 elem->prev = changeset->tail;
3787 changeset->tail = elem;
3794 * @changeset: the changeset
3803 libhal_changeset_set_property_string (LibHalChangeSet *changeset, const char *key, const char *value)
3826 libhal_changeset_append (changeset, elem);
3833 * @changeset: the changeset
3842 libhal_changeset_set_property_int (LibHalChangeSet *changeset, const char *key, dbus_int32_t value)
3859 libhal_changeset_append (changeset, elem);
3866 * @changeset: the changeset
3875 libhal_changeset_set_property_uint64 (LibHalChangeSet *changeset, const char *key, dbus_uint64_t value)
3892 libhal_changeset_append (changeset, elem);
3899 * @changeset: the changeset
3908 libhal_changeset_set_property_double (LibHalChangeSet *changeset, const char *key, double value)
3925 libhal_changeset_append (changeset, elem);
3932 * @changeset: the changeset
3941 libhal_changeset_set_property_bool (LibHalChangeSet *changeset, const char *key, dbus_bool_t value)
3958 libhal_changeset_append (changeset, elem);
3965 * @changeset: the changeset
3974 libhal_changeset_set_property_strlist (LibHalChangeSet *changeset, const char *key, const char **value)
4021 libhal_changeset_append (changeset, elem);
4029 * @changeset: the changeset to commit
4032 * Commit a changeset to the daemon.
4034 * Returns: True if the changeset was committed on the daemon side
4037 libhal_device_commit_changeset (LibHalContext *ctx, LibHalChangeSet *changeset, DBusError *error)
4052 if (changeset->head == NULL) {
4056 message = dbus_message_new_method_call ("org.freedesktop.Hal", changeset->udi,
4075 for (elem = changeset->head; elem != NULL; elem = elem->next) {
4155 * @changeset: the changeset to free
4157 * Free a changeset.
4160 libhal_device_free_changeset (LibHalChangeSet *changeset)
4165 for (elem = changeset->head; elem != NULL; elem = elem2) {
4188 free (changeset->udi);
4189 free (changeset);