summaryrefslogtreecommitdiff
path: root/ges/ges-base-xml-formatter.h
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-03-17 15:51:39 -0300
committerThibault Saunier <tsaunier@igalia.com>2020-03-19 21:09:18 +0000
commit0012c6a3b045f4dbffc1005b83ad2198452d8d0c (patch)
treed77211ffe4e7b03f778d0bd1a662975e3af9d936 /ges/ges-base-xml-formatter.h
parentaaf2025c71735302845b07322f48a7e74a3ff7ff (diff)
ges: Cleanup the way we declare object types
We create our own _DECLARE_ macro because we have instance structures
Diffstat (limited to 'ges/ges-base-xml-formatter.h')
-rw-r--r--ges/ges-base-xml-formatter.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/ges/ges-base-xml-formatter.h b/ges/ges-base-xml-formatter.h
index b348521d..988878bd 100644
--- a/ges/ges-base-xml-formatter.h
+++ b/ges/ges-base-xml-formatter.h
@@ -24,17 +24,12 @@
#define GES_BASE_XML_FORMATTER_H
G_BEGIN_DECLS
-#define GES_TYPE_BASE_XML_FORMATTER (ges_base_xml_formatter_get_type ())
-#define GES_BASE_XML_FORMATTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_BASE_XML_FORMATTER, GESBaseXmlFormatter))
-#define GES_BASE_XML_FORMATTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_BASE_XML_FORMATTER, GESBaseXmlFormatterClass))
-#define GES_IS_BASE_XML_FORMATTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_BASE_XML_FORMATTER))
-#define GES_IS_BASE_XML_FORMATTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_BASE_XML_FORMATTER))
-#define GES_BASE_XML_FORMATTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_BASE_XML_FORMATTER, GESBaseXmlFormatterClass))
-
-typedef struct _GESBaseXmlFormatterPrivate GESBaseXmlFormatterPrivate;
typedef struct _GESBaseXmlFormatter GESBaseXmlFormatter;
typedef struct _GESBaseXmlFormatterClass GESBaseXmlFormatterClass;
+#define GES_TYPE_BASE_XML_FORMATTER (ges_base_xml_formatter_get_type ())
+GES_DECLARE_TYPE(BaseXmlFormatter, base_xml_formatter, BASE_XML_FORMATTER);
+
/**
* GESBaseXmlFormatter:
*/
@@ -65,8 +60,5 @@ struct _GESBaseXmlFormatterClass
gpointer _ges_reserved[GES_PADDING];
};
-GES_API
-GType ges_base_xml_formatter_get_type (void);
-
G_END_DECLS
#endif /* _GES_BASE_XML_FORMATTER_H */