[gnome-builder] libide: make add/remove provider private API
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: make add/remove provider private API
- Date: Mon, 23 Mar 2015 23:25:07 +0000 (UTC)
commit a5a7e046ca4fa8ed06a5f4f1ce01e1517011e879
Author: Christian Hergert <christian hergert me>
Date: Wed Feb 11 18:11:56 2015 -0800
libide: make add/remove provider private API
libide/c/ide-c-language.c | 3 ++-
libide/ide-diagnostician.h | 4 ----
libide/ide-private.h | 6 ++++++
3 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/libide/c/ide-c-language.c b/libide/c/ide-c-language.c
index be0174c..ae02369 100644
--- a/libide/c/ide-c-language.c
+++ b/libide/c/ide-c-language.c
@@ -24,6 +24,7 @@
#include "ide-clang-highlighter.h"
#include "ide-clang-symbol-resolver.h"
#include "ide-diagnostician.h"
+#include "ide-private.h"
typedef struct
{
@@ -161,7 +162,7 @@ ide_c_language_initiable_init (GInitable *initable,
provider = g_object_new (IDE_TYPE_CLANG_DIAGNOSTIC_PROVIDER,
"context", context,
NULL);
- ide_diagnostician_add_provider (priv->diagnostician, provider);
+ _ide_diagnostician_add_provider (priv->diagnostician, provider);
g_clear_object (&provider);
/*
diff --git a/libide/ide-diagnostician.h b/libide/ide-diagnostician.h
index 092d970..b86b10b 100644
--- a/libide/ide-diagnostician.h
+++ b/libide/ide-diagnostician.h
@@ -32,10 +32,6 @@ struct _IdeDiagnostician
IdeObject parent_instance;
};
-void ide_diagnostician_add_provider (IdeDiagnostician *self,
- IdeDiagnosticProvider *provider);
-void ide_diagnostician_remove_provider (IdeDiagnostician *self,
- IdeDiagnosticProvider *provider);
G_END_DECLS
diff --git a/libide/ide-private.h b/libide/ide-private.h
index c7b4a16..00296b7 100644
--- a/libide/ide-private.h
+++ b/libide/ide-private.h
@@ -34,6 +34,12 @@ IdeClangTranslationUnit *_ide_clang_translation_unit_new (IdeContext *con
CXTranslationUnit tu,
gint64 sequence);
+void _ide_diagnostician_add_provider (IdeDiagnostician *self,
+ IdeDiagnosticProvider *provider);
+void _ide_diagnostician_remove_provider (IdeDiagnostician *self,
+ IdeDiagnosticProvider *provider);
+
+
G_END_DECLS
#endif /* IDE_PRIVATE_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]