Top | ![]() |
![]() |
![]() |
![]() |
void | ide_runtime_provider_load () |
void | ide_runtime_provider_unload () |
gboolean | ide_runtime_provider_can_install () |
void | ide_runtime_provider_install_async () |
gboolean | ide_runtime_provider_install_finish () |
void | ide_runtime_provider_bootstrap_async () |
IdeRuntime * | ide_runtime_provider_bootstrap_finish () |
void ide_runtime_provider_load (IdeRuntimeProvider *self
,IdeRuntimeManager *manager
);
void ide_runtime_provider_unload (IdeRuntimeProvider *self
,IdeRuntimeManager *manager
);
gboolean ide_runtime_provider_can_install (IdeRuntimeProvider *self
,const gchar *runtime_id
);
void ide_runtime_provider_install_async (IdeRuntimeProvider *self
,const gchar *runtime_id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean ide_runtime_provider_install_finish (IdeRuntimeProvider *self
,GAsyncResult *result
,GError **error
);
void ide_runtime_provider_bootstrap_async (IdeRuntimeProvider *self
,IdeBuildPipeline *pipeline
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
This function allows to the runtime provider to install dependent runtimes
similar to ide_runtime_provider_install_async()
, but with the added benefit
that it can access the pipeline for more information. For example, it may
want to check the architecture of the pipeline, or the connected device for
tweaks as to what runtime to use.
Some runtime providers like Flatpak might use this to locate SDK extensions and install those too.
This function should be used instead of ide_runtime_provider_install_async()
.
self |
||
pipeline |
||
cancellable |
a GCancellable or |
[nullable] |
callback |
a GAsyncReadyCallback or |
|
user_data |
closure data for |
Since: 3.28
IdeRuntime * ide_runtime_provider_bootstrap_finish (IdeRuntimeProvider *self
,GAsyncResult *result
,GError **error
);
Completes the asynchronous request to bootstrap.
The resulting runtime will be set as the runtime to use for the build pipeline.
Since: 3.28
struct IdeRuntimeProviderInterface { GTypeInterface parent; void (*load) (IdeRuntimeProvider *self, IdeRuntimeManager *manager); void (*unload) (IdeRuntimeProvider *self, IdeRuntimeManager *manager); gboolean (*can_install) (IdeRuntimeProvider *self, const gchar *runtime_id); void (*install_async) (IdeRuntimeProvider *self, const gchar *runtime_id, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); gboolean (*install_finish) (IdeRuntimeProvider *self, GAsyncResult *result, GError **error); void (*bootstrap_async) (IdeRuntimeProvider *self, IdeBuildPipeline *pipeline, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); IdeRuntime *(*bootstrap_finish) (IdeRuntimeProvider *self, GAsyncResult *result, GError **error); };