Top | ![]() |
![]() |
![]() |
![]() |
void
ide_diagnostic_provider_load (IdeDiagnosticProvider *self
);
Loads the provider, discovering any necessary resources.
Since: 3.32
void
ide_diagnostic_provider_unload (IdeDiagnosticProvider *self
);
Unloads the provider and any allocated resources.
Since: 3.32
void
ide_diagnostic_provider_emit_invalidated
(IdeDiagnosticProvider *self
);
void ide_diagnostic_provider_diagnose_async (IdeDiagnosticProvider *self
,GFile *file
,GBytes *contents
,const gchar *lang_id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
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.
self |
||
file |
a GFile |
|
contents |
the content for the buffer. |
[nullable] |
lang_id |
the language id for the buffer. |
[nullable] |
cancellable |
a GCancellable or |
[nullable] |
callback |
a callback to execute upon completion |
|
user_data |
closure data for |
Since: 3.32
IdeDiagnostics * ide_diagnostic_provider_diagnose_finish (IdeDiagnosticProvider *self
,GAsyncResult *result
,GError **error
);
Completes an asynchronous request to diagnose a file.
Since: 3.32
#define IDE_TYPE_DIAGNOSTIC_PROVIDER (ide_diagnostic_provider_get_type())
struct IdeDiagnosticProviderInterface { GTypeInterface parent_iface; void (*load) (IdeDiagnosticProvider *self); void (*unload) (IdeDiagnosticProvider *self); void (*diagnose_async) (IdeDiagnosticProvider *self, GFile *file, GBytes *contents, const gchar *lang_id, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); IdeDiagnostics *(*diagnose_finish) (IdeDiagnosticProvider *self, GAsyncResult *result, GError **error); };
“invalidated”
signalvoid user_function (IdeDiagnosticProvider *idediagnosticprovider, gpointer user_data)
Flags: Run Last