Virtual Method

IdeDiagnosticProviderdiagnose_async

Declaration

void
diagnose_async (
  IdeDiagnosticProvider* self,
  GFile* file,
  GBytes* contents,
  const gchar* lang_id,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description

Requests the provider diagnose file using contents as the contents of the file.

callback is executed upon completion, and the caller should call ide_diagnostic_provider_diagnose_finish() to get the result.

Parameters

file

Type: GFile

A GFile.

The data is owned by the caller of the function.
contents

Type: GBytes

The content for the buffer.

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

Type: const gchar*

The language id for the buffer.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
cancellable

Type: GCancellable

A GCancellable or NULL.

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

Type: GAsyncReadyCallback

A callback to execute upon completion.

user_data

Type: gpointer

Closure data for callback.

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