Lines Matching defs:changeset

3848  * Request a new changeset object. Used for changing multiple properties at once. Useful when
3851 * Returns: A new changeset object or NULL on error
3856 LibHalChangeSet *changeset;
3860 changeset = calloc (1, sizeof (LibHalChangeSet));
3861 if (changeset == NULL)
3864 changeset->udi = strdup (udi);
3865 if (changeset->udi == NULL) {
3866 free (changeset);
3867 changeset = NULL;
3871 changeset->head = NULL;
3872 changeset->tail = NULL;
3875 return changeset;
3879 libhal_changeset_append (LibHalChangeSet *changeset, LibHalChangeSetElement *elem)
3881 LIBHAL_CHECK_PARAM_VALID(changeset, "*changeset", );
3884 if (changeset->head == NULL) {
3885 changeset->head = elem;
3886 changeset->tail = elem;
3890 elem->prev = changeset->tail;
3893 changeset->tail = elem;
3900 * @changeset: the changeset
3909 libhal_changeset_set_property_string (LibHalChangeSet *changeset, const char *key, const char *value)
3913 LIBHAL_CHECK_PARAM_VALID(changeset, "*changeset", FALSE);
3936 libhal_changeset_append (changeset, elem);
3943 * @changeset: the changeset
3952 libhal_changeset_set_property_int (LibHalChangeSet *changeset, const char *key, dbus_int32_t value)
3956 LIBHAL_CHECK_PARAM_VALID(changeset, "*changeset", FALSE);
3972 libhal_changeset_append (changeset, elem);
3979 * @changeset: the changeset
3988 libhal_changeset_set_property_uint64 (LibHalChangeSet *changeset, const char *key, dbus_uint64_t value)
3992 LIBHAL_CHECK_PARAM_VALID(changeset, "*changeset", FALSE);
4008 libhal_changeset_append (changeset, elem);
4015 * @changeset: the changeset
4024 libhal_changeset_set_property_double (LibHalChangeSet *changeset, const char *key, double value)
4028 LIBHAL_CHECK_PARAM_VALID(changeset, "*changeset", FALSE);
4044 libhal_changeset_append (changeset, elem);
4051 * @changeset: the changeset
4060 libhal_changeset_set_property_bool (LibHalChangeSet *changeset, const char *key, dbus_bool_t value)
4064 LIBHAL_CHECK_PARAM_VALID(changeset, "*changeset", FALSE);
4080 libhal_changeset_append (changeset, elem);
4087 * @changeset: the changeset
4096 libhal_changeset_set_property_strlist (LibHalChangeSet *changeset, const char *key, const char **value)
4103 LIBHAL_CHECK_PARAM_VALID(changeset, "*changeset", FALSE);
4146 libhal_changeset_append (changeset, elem);
4154 * @changeset: the changeset to commit
4157 * Commit a changeset to the daemon.
4159 * Returns: True if the changeset was committed on the daemon side
4162 libhal_device_commit_changeset (LibHalContext *ctx, LibHalChangeSet *changeset, DBusError *error)
4176 LIBHAL_CHECK_UDI_VALID(changeset->udi, FALSE);
4178 if (changeset->head == NULL) {
4182 message = dbus_message_new_method_call ("org.freedesktop.Hal", changeset->udi,
4201 for (elem = changeset->head; elem != NULL; elem = elem->next) {
4281 * @changeset: the changeset to free
4283 * Free a changeset.
4286 libhal_device_free_changeset (LibHalChangeSet *changeset)
4291 for (elem = changeset->head; elem != NULL; elem = elem2) {
4315 free (changeset->udi);
4316 free (changeset);