[gnome-builder/wip/slaf/xml-pack: 11/56] xml-pack: add a types include



commit d5665e17e63c898c5be29a7ac4aec29b1b81658c
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun May 14 22:16:16 2017 +0200

    xml-pack: add a types include
    
    To avoid cycles in include calls,
    we move IdeXmlPositionKind to
    ide-xml-types.h

 plugins/xml-pack/ide-xml-position.h    |    8 +-------
 plugins/xml-pack/ide-xml-service.c     |    1 +
 plugins/xml-pack/ide-xml-symbol-node.h |    1 +
 3 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/plugins/xml-pack/ide-xml-position.h b/plugins/xml-pack/ide-xml-position.h
index 441256b..d021d9e 100644
--- a/plugins/xml-pack/ide-xml-position.h
+++ b/plugins/xml-pack/ide-xml-position.h
@@ -21,19 +21,13 @@
 
 #include <glib-object.h>
 
+#include "ide-xml-types.h"
 #include "ide-xml-symbol-node.h"
 
 G_BEGIN_DECLS
 
 #define IDE_TYPE_XML_POSITION (ide_xml_position_get_type())
 
-typedef enum
-{
-  IDE_XML_POSITION_KIND_IN_START_TAG,
-  IDE_XML_POSITION_KIND_IN_END_TAG,
-  IDE_XML_POSITION_KIND_IN_CONTENT
-} IdeXmlPositionKind;
-
 typedef struct _IdeXmlPosition IdeXmlPosition;
 
 struct _IdeXmlPosition
diff --git a/plugins/xml-pack/ide-xml-service.c b/plugins/xml-pack/ide-xml-service.c
index 0f3f56f..5b0df9e 100644
--- a/plugins/xml-pack/ide-xml-service.c
+++ b/plugins/xml-pack/ide-xml-service.c
@@ -26,6 +26,7 @@
 #include "ide-xml-analysis.h"
 #include "ide-xml-schema-cache-entry.h"
 #include "ide-xml-tree-builder.h"
+#include "ide-xml-types.h"
 #include "ide-xml-service.h"
 #include "ide-xml-tree-builder.h"
 
diff --git a/plugins/xml-pack/ide-xml-symbol-node.h b/plugins/xml-pack/ide-xml-symbol-node.h
index 85d71b1..3458d27 100644
--- a/plugins/xml-pack/ide-xml-symbol-node.h
+++ b/plugins/xml-pack/ide-xml-symbol-node.h
@@ -19,6 +19,7 @@
 #ifndef IDE_XML_SYMBOL_NODE_H
 #define IDE_XML_SYMBOL_NODE_H
 
+#include "ide-xml-types.h"
 #include "ide-xml-symbol-resolver.h"
 
 #include <ide.h>


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