| Top |
| void | ide_toolchain_provider_load_async () |
| gboolean | ide_toolchain_provider_load_finish () |
| void | ide_toolchain_provider_unload () |
| void | ide_toolchain_provider_emit_added () |
| void | ide_toolchain_provider_emit_removed () |
void ide_toolchain_provider_load_async (IdeToolchainProvider *self,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
This function is called to initialize the toolchain provider after
the plugin instance has been created. The provider should locate any
toolchain within the project and call ide_toolchain_provider_emit_added()
before completing the asynchronous function so that the toolchain
manager may be made aware of the toolchains.
self |
||
cancellable |
a GCancellable or |
[nullable] |
callback |
a callback to execute upon completion |
|
user_data |
closure data for |
Since: 3.32
gboolean ide_toolchain_provider_load_finish (IdeToolchainProvider *self,GAsyncResult *result,GError **error);
Completes an asynchronous request to ide_toolchain_provider_load_async().
Since: 3.32
void ide_toolchain_provider_unload (IdeToolchainProvider *self,IdeToolchainManager *manager);
void ide_toolchain_provider_emit_added (IdeToolchainProvider *self,IdeToolchain *toolchain);
IdeToolchainProvider implementations should call this function with
a toolchain
when it has discovered a new toolchain.
Since: 3.32
void ide_toolchain_provider_emit_removed (IdeToolchainProvider *self,IdeToolchain *toolchain);
IdeToolchainProvider implementations should call this function with
a toolchain
when the toolchain was removed.
Since: 3.32
struct IdeToolchainProviderInterface {
GTypeInterface parent_iface;
void (*load_async) (IdeToolchainProvider *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean (*load_finish) (IdeToolchainProvider *self,
GAsyncResult *result,
GError **error);
void (*unload) (IdeToolchainProvider *self,
IdeToolchainManager *manager);
void (*added) (IdeToolchainProvider *self,
IdeToolchain *toolchain);
void (*removed) (IdeToolchainProvider *self,
IdeToolchain *toolchain);
};
“added” signalvoid user_function (IdeToolchainProvider *idetoolchainprovider, IdeToolchain *arg1, gpointer user_data)
Flags: Run Last
“removed” signalvoid user_function (IdeToolchainProvider *idetoolchainprovider, IdeToolchain *arg1, gpointer user_data)
Flags: Run Last