Method
IdeDiagnosticProviderdiagnose_async
Declaration
void
ide_diagnostic_provider_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:
GFileA
GFile.The data is owned by the caller of the method. contents-
Type:
GBytesThe content for the buffer.
The argument can be NULL.The data is owned by the caller of the method. 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 method. The value is a NUL terminated UTF-8 string. cancellable-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA callback to 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.