1 /* gbp-code-index-service.h 2 * 3 * Copyright 2019 Christian Hergert <chergert@redhat.com> 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * SPDX-License-Identifier: GPL-3.0-or-later 19 */ 20 21 #pragma once 22 23 #include <libide-core.h> 24 #include <libide-code.h> 25 26 #include "ide-code-index-index.h" 27 28 G_BEGIN_DECLS 29 30 #define GBP_TYPE_CODE_INDEX_SERVICE (gbp_code_index_service_get_type()) 31 32 G_DECLARE_FINAL_TYPE (GbpCodeIndexService, gbp_code_index_service, GBP, CODE_INDEX_SERVICE, IdeObject) 33 34 GbpCodeIndexService *gbp_code_index_service_from_context (IdeContext *context); 35 void gbp_code_index_service_start (GbpCodeIndexService *self); 36 void gbp_code_index_service_stop (GbpCodeIndexService *self); 37 gboolean gbp_code_index_service_get_paused (GbpCodeIndexService *self); 38 void gbp_code_index_service_set_paused (GbpCodeIndexService *self, 39 gboolean paused); 40 IdeCodeIndexIndex *gbp_code_index_service_get_index (GbpCodeIndexService *self); 41 IdeCodeIndexer *gbp_code_index_service_get_indexer (GbpCodeIndexService *self, 42 const gchar *lang_id, 43 const gchar *path); 44 45 G_END_DECLS 46