[gnome-builder] project-miner: add extension point for project miners



commit 9c31d3953de4c80a6faf2a674798aaa1a019ae7b
Author: Christian Hergert <christian hergert me>
Date:   Tue Apr 7 23:56:56 2015 -0700

    project-miner: add extension point for project miners

 libide/ide-project-miner.h |    3 ++-
 libide/ide.c               |    8 ++++++++
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-project-miner.h b/libide/ide-project-miner.h
index 8b48a70..03f96b1 100644
--- a/libide/ide-project-miner.h
+++ b/libide/ide-project-miner.h
@@ -25,7 +25,8 @@
 
 G_BEGIN_DECLS
 
-#define IDE_TYPE_PROJECT_MINER (ide_project_miner_get_type())
+#define IDE_TYPE_PROJECT_MINER            (ide_project_miner_get_type())
+#define IDE_PROJECT_MINER_EXTENSION_POINT "org.gnome.builder.extensions.project-miner"
 
 G_DECLARE_DERIVABLE_TYPE (IdeProjectMiner, ide_project_miner, IDE, PROJECT_MINER, GObject)
 
diff --git a/libide/ide.c b/libide/ide.c
index 406b26b..9dfc7a0 100644
--- a/libide/ide.c
+++ b/libide/ide.c
@@ -23,6 +23,7 @@
 #include "ide.h"
 
 #include "ide-autotools-build-system.h"
+#include "ide-autotools-project-miner.h"
 #include "ide-c-language.h"
 #include "ide-clang-service.h"
 #include "ide-devhelp-search-provider.h"
@@ -36,6 +37,7 @@
 #include "ide-gjs-script.h"
 #include "ide-gsettings-file-settings.h"
 #include "ide-html-language.h"
+#include "ide-project-miner.h"
 #include "ide-pygobject-script.h"
 #include "ide-python-language.h"
 #include "ide-search-provider.h"
@@ -84,6 +86,7 @@ ide_init_ctor (void)
   g_io_extension_point_register (IDE_BUILD_SYSTEM_EXTENSION_POINT);
   g_io_extension_point_register (IDE_FILE_SETTINGS_EXTENSION_POINT);
   g_io_extension_point_register (IDE_LANGUAGE_EXTENSION_POINT);
+  g_io_extension_point_register (IDE_PROJECT_MINER_EXTENSION_POINT);
   g_io_extension_point_register (IDE_SCRIPT_EXTENSION_POINT);
   g_io_extension_point_register (IDE_SEARCH_PROVIDER_EXTENSION_POINT);
   g_io_extension_point_register (IDE_SERVICE_EXTENSION_POINT);
@@ -124,6 +127,11 @@ ide_init_ctor (void)
                                   IDE_LANGUAGE_EXTENSION_POINT".xml",
                                   0);
 
+  g_io_extension_point_implement (IDE_PROJECT_MINER_EXTENSION_POINT,
+                                  IDE_TYPE_AUTOTOOLS_PROJECT_MINER,
+                                  IDE_PROJECT_MINER_EXTENSION_POINT".autotools",
+                                  0);
+
   g_io_extension_point_implement (IDE_SCRIPT_EXTENSION_POINT,
                                   IDE_TYPE_GJS_SCRIPT,
                                   IDE_SCRIPT_EXTENSION_POINT".gjs",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]