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:
GFileA
GFileorNULL.The argument can be NULL.The data is owned by the caller of the method. cancellable-
Type:
GCancellableA
GCancellable.The argument can be NULL.The data is owned by the caller of the method. notif-
Type:
IdeNotificationA location for an
IdeNotificationorNULL.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:
GAsyncReadyCallbackA
GAsyncReadyCallbackto execute upon completion.The argument can be NULL. user_data-
Type:
gpointerClosure data for
callback.The argument can be NULL.The data is owned by the caller of the method.