void ide_vcs_new_async (IdeContext *context, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { ide_object_new_for_extension_async (IDE_TYPE_VCS, sort_by_priority, NULL, io_priority, cancellable, callback, user_data, "context", context, NULL); }
/** * ide_build_system_new_async: * @context: #IdeBuildSystem * @project_file: A #GFile containing the directory or project file. * @cancellable: (allow-none): A #GCancellable * @callback: A callback to execute upon completion * @user_data: User data for @callback. * * Asynchronously creates a new #IdeBuildSystem instance using the registered * #GIOExtensionPoint system. Each extension point will be tried asynchronously * by priority until one has been found that supports @project_file. * * If no build system could be found, then ide_build_system_new_finish() will * return %NULL. */ void ide_build_system_new_async (IdeContext *context, GFile *project_file, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_return_if_fail (IDE_IS_CONTEXT (context)); g_return_if_fail (G_IS_FILE (project_file)); g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable)); ide_object_new_for_extension_async (IDE_TYPE_BUILD_SYSTEM, sort_priority, NULL, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "context", context, "project-file", project_file, NULL); }