Method

IdeBuffersave_file_async

Declaration

void
ide_buffer_save_file_async (
  IdeBuffer* self,
  GFile* file,
  GCancellable* cancellable,
  IdeNotification** notif,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description

Asynchronously saves the buffer contents to file.

If file is NULL, then the IdeBuffer:file property is used.

The buffer is marked as busy during the operation, and must not have further editing until the operation is complete.

callback is executed upon completion and should call ide_buffer_save_file_finish() to get the result of the operation.

Parameters

file

Type: GFile

A GFile or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
cancellable

Type: GCancellable

A GCancellable.

The argument can be NULL.
The data is owned by the caller of the method.
notif

Type: IdeNotification

A location for an IdeNotification or NULL.

The argument will be set by the function.
The argument can be NULL.
The caller of the method takes ownership of the data, and is responsible for freeing it.
callback

Type: GAsyncReadyCallback

A GAsyncReadyCallback to execute upon completion.

The argument can be NULL.
user_data

Type: gpointer

Closure data for callback.

The argument can be NULL.
The data is owned by the caller of the method.