Commit b11179b1 authored by Christian Hergert's avatar Christian Hergert
Browse files

code-index: stub out new implementation of index builder

We need to rewrite this to avoid using threads. This just stubs out the
same API for where we will start with.
parent def65775
/* ide-code-index-builder.h
* Copyright © 2017 Anoop Chandu <>
* Copyright © 2018 Christian Hergert <>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -29,6 +30,9 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (IdeCodeIndexBuilder, ide_code_index_builder, IDE, CODE_INDEX_BUILDER, IdeObject)
IdeCodeIndexBuilder *ide_code_index_builder_new (IdeContext *context,
IdeCodeIndexService *service,
IdeCodeIndexIndex *index);
void ide_code_index_builder_drop_caches (IdeCodeIndexBuilder *self);
void ide_code_index_builder_build_async (IdeCodeIndexBuilder *self,
GFile *directory,
......@@ -39,8 +43,5 @@ void ide_code_index_builder_build_async (IdeCodeIndexBuilder *
gboolean ide_code_index_builder_build_finish (IdeCodeIndexBuilder *self,
GAsyncResult *result,
GError **error);
IdeCodeIndexBuilder *ide_code_index_builder_new (IdeContext *context,
IdeCodeIndexIndex *index,
IdeCodeIndexService *service);
......@@ -453,7 +453,7 @@ ide_code_index_service_context_loaded (IdeService *service)
self->code_indexers = g_hash_table_new_full (NULL, NULL, NULL, g_object_unref);
self->index = ide_code_index_index_new (context);
self->builder = ide_code_index_builder_new (context, self->index, self);
self->builder = ide_code_index_builder_new (context, self, self->index);
self->build_dirs = g_hash_table_new_full (g_file_hash,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment