[gnome-builder] xml-pack: fix missing GType declarations
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] xml-pack: fix missing GType declarations
- Date: Sat, 16 Jun 2018 01:41:10 +0000 (UTC)
commit 8b55ce73a636ea92c94c4164268f4ab5cd6fc202
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 15 18:30:55 2018 -0700
xml-pack: fix missing GType declarations
src/plugins/xml-pack/ide-xml-path.h | 26 +++++++++++------------
src/plugins/xml-pack/ide-xml-position.h | 1 +
src/plugins/xml-pack/ide-xml-rng-define.h | 34 ++++++++++++++++--------------
src/plugins/xml-pack/ide-xml-rng-grammar.h | 1 +
src/plugins/xml-pack/ide-xml-schema.h | 9 ++++----
5 files changed, 38 insertions(+), 33 deletions(-)
---
diff --git a/src/plugins/xml-pack/ide-xml-path.h b/src/plugins/xml-pack/ide-xml-path.h
index 7be69fb51..f161a7277 100644
--- a/src/plugins/xml-pack/ide-xml-path.h
+++ b/src/plugins/xml-pack/ide-xml-path.h
@@ -18,10 +18,10 @@
#pragma once
-#include "ide-xml-symbol-node.h"
-
#include <glib-object.h>
+#include "ide-xml-symbol-node.h"
+
G_BEGIN_DECLS
#define IDE_TYPE_XML_PATH (ide_xml_path_get_type())
@@ -37,17 +37,17 @@ struct _IdeXmlPath
guint start_at_root : 1;
};
-IdeXmlPath *ide_xml_path_new (void);
-IdeXmlPath *ide_xml_path_new_from_node (IdeXmlSymbolNode *node);
-IdeXmlPath *ide_xml_path_copy (IdeXmlPath *self);
-IdeXmlPath *ide_xml_path_ref (IdeXmlPath *self);
-void ide_xml_path_unref (IdeXmlPath *self);
-
-void ide_xml_path_append_node (IdeXmlPath *self,
- IdeXmlSymbolNode *node);
-void ide_xml_path_dump (IdeXmlPath *self);
-void ide_xml_path_prepend_node (IdeXmlPath *self,
- IdeXmlSymbolNode *node);
+GType ide_xml_path_get_type (void);
+IdeXmlPath *ide_xml_path_new (void);
+IdeXmlPath *ide_xml_path_new_from_node (IdeXmlSymbolNode *node);
+IdeXmlPath *ide_xml_path_copy (IdeXmlPath *self);
+IdeXmlPath *ide_xml_path_ref (IdeXmlPath *self);
+void ide_xml_path_unref (IdeXmlPath *self);
+void ide_xml_path_append_node (IdeXmlPath *self,
+ IdeXmlSymbolNode *node);
+void ide_xml_path_dump (IdeXmlPath *self);
+void ide_xml_path_prepend_node (IdeXmlPath *self,
+ IdeXmlSymbolNode *node);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeXmlPath, ide_xml_path_unref)
diff --git a/src/plugins/xml-pack/ide-xml-position.h b/src/plugins/xml-pack/ide-xml-position.h
index e8c914bba..3f535eaff 100644
--- a/src/plugins/xml-pack/ide-xml-position.h
+++ b/src/plugins/xml-pack/ide-xml-position.h
@@ -48,6 +48,7 @@ struct _IdeXmlPosition
guint ref_count;
};
+GType ide_xml_position_get_type (void);
IdeXmlPosition *ide_xml_position_new (IdeXmlSymbolNode *node,
const gchar *prefix,
IdeXmlPositionKind kind,
diff --git a/src/plugins/xml-pack/ide-xml-rng-define.h b/src/plugins/xml-pack/ide-xml-rng-define.h
index c17d84197..a4e1b5dc5 100644
--- a/src/plugins/xml-pack/ide-xml-rng-define.h
+++ b/src/plugins/xml-pack/ide-xml-rng-define.h
@@ -18,8 +18,9 @@
#pragma once
-#include <libxml/tree.h>
#include <glib-object.h>
+#include <libxml/tree.h>
+
#include "ide-xml-symbol-node.h"
G_BEGIN_DECLS
@@ -79,21 +80,22 @@ struct _IdeXmlRngDefine
guint is_mandatory : 1;
};
-IdeXmlRngDefine *ide_xml_rng_define_new (xmlNode *node,
- IdeXmlRngDefine *parent,
- const guchar *name,
- IdeXmlRngDefineType type);
-void ide_xml_rng_define_append (IdeXmlRngDefine *self,
- IdeXmlRngDefine *def);
-const gchar *ide_xml_rng_define_get_type_name (IdeXmlRngDefine *self);
-gboolean ide_xml_rng_define_is_nameclass_match (IdeXmlRngDefine *define,
- IdeXmlSymbolNode *node);
-void ide_xml_rng_define_propagate_parent (IdeXmlRngDefine *self,
- IdeXmlRngDefine *parent);
-IdeXmlRngDefine *ide_xml_rng_define_ref (IdeXmlRngDefine *self);
-void ide_xml_rng_define_unref (IdeXmlRngDefine *self);
-void ide_xml_rng_define_dump_tree (IdeXmlRngDefine *self,
- gboolean recursive);
+GType ide_xml_rng_define_get_type (void);
+IdeXmlRngDefine *ide_xml_rng_define_new (xmlNode *node,
+ IdeXmlRngDefine *parent,
+ const guchar *name,
+ IdeXmlRngDefineType type);
+void ide_xml_rng_define_append (IdeXmlRngDefine *self,
+ IdeXmlRngDefine *def);
+const gchar *ide_xml_rng_define_get_type_name (IdeXmlRngDefine *self);
+gboolean ide_xml_rng_define_is_nameclass_match (IdeXmlRngDefine *define,
+ IdeXmlSymbolNode *node);
+void ide_xml_rng_define_propagate_parent (IdeXmlRngDefine *self,
+ IdeXmlRngDefine *parent);
+IdeXmlRngDefine *ide_xml_rng_define_ref (IdeXmlRngDefine *self);
+void ide_xml_rng_define_unref (IdeXmlRngDefine *self);
+void ide_xml_rng_define_dump_tree (IdeXmlRngDefine *self,
+ gboolean recursive);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeXmlRngDefine, ide_xml_rng_define_unref)
diff --git a/src/plugins/xml-pack/ide-xml-rng-grammar.h b/src/plugins/xml-pack/ide-xml-rng-grammar.h
index c3d4ed4f2..313351bad 100644
--- a/src/plugins/xml-pack/ide-xml-rng-grammar.h
+++ b/src/plugins/xml-pack/ide-xml-rng-grammar.h
@@ -42,6 +42,7 @@ struct _IdeXmlRngGrammar
IdeXmlRngGrammar *children;
};
+GType ide_xml_rng_grammar_get_type (void);
IdeXmlRngGrammar *ide_xml_rng_grammar_new (void);
void ide_xml_rng_grammar_add_child (IdeXmlRngGrammar *self,
IdeXmlRngGrammar *child);
diff --git a/src/plugins/xml-pack/ide-xml-schema.h b/src/plugins/xml-pack/ide-xml-schema.h
index 9f2e79ed1..c663039a2 100644
--- a/src/plugins/xml-pack/ide-xml-schema.h
+++ b/src/plugins/xml-pack/ide-xml-schema.h
@@ -36,10 +36,11 @@ struct _IdeXmlSchema
IdeXmlRngGrammar *top_grammar;
};
-IdeXmlSchema *ide_xml_schema_new (void);
-IdeXmlSchema *ide_xml_schema_copy (IdeXmlSchema *self);
-IdeXmlSchema *ide_xml_schema_ref (IdeXmlSchema *self);
-void ide_xml_schema_unref (IdeXmlSchema *self);
+GType ide_xml_schema_get_type (void);
+IdeXmlSchema *ide_xml_schema_new (void);
+IdeXmlSchema *ide_xml_schema_copy (IdeXmlSchema *self);
+IdeXmlSchema *ide_xml_schema_ref (IdeXmlSchema *self);
+void ide_xml_schema_unref (IdeXmlSchema *self);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (IdeXmlSchema, ide_xml_schema_unref)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]