1 /* ide-project-tree-addin.h 2 * 3 * Copyright 2018-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 <dazzle.h> 24 #include <libide-core.h> 25 26 G_BEGIN_DECLS 27 28 #define IDE_TYPE_PROJECT_TREE_ADDIN (ide_project_tree_addin_get_type()) 29 30 IDE_AVAILABLE_IN_3_32 31 G_DECLARE_INTERFACE (IdeProjectTreeAddin, ide_project_tree_addin, IDE, PROJECT_TREE_ADDIN, GObject) 32 33 struct _IdeProjectTreeAddinInterface 34 { 35 GTypeInterface parent_iface; 36 37 void (*load) (IdeProjectTreeAddin *self, 38 DzlTree *tree); 39 void (*unload) (IdeProjectTreeAddin *self, 40 DzlTree *tree); 41 }; 42 43 IDE_AVAILABLE_IN_3_32 44 void ide_project_tree_addin_load (IdeProjectTreeAddin *self, 45 DzlTree *tree); 46 IDE_AVAILABLE_IN_3_32 47 void ide_project_tree_addin_unload (IdeProjectTreeAddin *self, 48 DzlTree *tree); 49 50 G_END_DECLS 51