/** * ide_builder_install_finish: * * Completes an asynchronous call to ide_builder_install_async(). * * Returns: (transfer none): An #IdeBuildResult. */ IdeBuildResult * ide_builder_install_finish (IdeBuilder *self, GAsyncResult *result, GError **error) { IdeBuildResult *ret; g_return_val_if_fail (IDE_IS_BUILDER (self), NULL); ret = IDE_BUILDER_GET_CLASS (self)->install_finish (self, result, error); g_return_val_if_fail (!ret || IDE_IS_BUILD_RESULT (ret), NULL); return ret; }
void ide_builder_install_async (IdeBuilder *self, IdeBuildResult **result, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_return_if_fail (IDE_IS_BUILDER (self)); g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable)); if (result != NULL) *result = NULL; IDE_BUILDER_GET_CLASS (self)->install_async (self, result, cancellable, callback, user_data); }
/** * ide_builder_build_finish: * * Completes an asynchronous request to build the project. * * Returns: (transfer full): An #IdeBuildResult or %NULL upon failure. */ IdeBuildResult * ide_builder_build_finish (IdeBuilder *builder, GAsyncResult *result, GError **error) { IdeBuildResult *ret = NULL; g_return_val_if_fail (IDE_IS_BUILDER (builder), NULL); g_return_val_if_fail (G_IS_ASYNC_RESULT (result), NULL); ret = IDE_BUILDER_GET_CLASS (builder)->build_finish (builder, result, error); g_return_val_if_fail (!ret || IDE_IS_BUILD_RESULT (ret), NULL); return ret; }
/** * ide_builder_build_async: * @result: (out) (transfer none): A location for an #IdeBuildResult. */ void ide_builder_build_async (IdeBuilder *builder, IdeBuilderBuildFlags flags, IdeBuildResult **result, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_return_if_fail (IDE_IS_BUILDER (builder)); g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable)); if (result != NULL) *result = NULL; IDE_BUILDER_GET_CLASS (builder)->build_async (builder, flags, result, cancellable, callback, user_data); }