summaryrefslogtreecommitdiff
path: root/gst-plugin/src/gsttransform.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst-plugin/src/gsttransform.h')
-rw-r--r--gst-plugin/src/gsttransform.h23
1 files changed, 4 insertions, 19 deletions
diff --git a/gst-plugin/src/gsttransform.h b/gst-plugin/src/gsttransform.h
index be9ce86..548b2f8 100644
--- a/gst-plugin/src/gsttransform.h
+++ b/gst-plugin/src/gsttransform.h
@@ -1,6 +1,7 @@
/*
* GStreamer
* Copyright (C) 2006 Stefan Kost <ensonic@users.sf.net>
+ * Copyright (C) 2020 Niels De Graef <niels.degraef@gmail.com>
* Copyright (C) YEAR AUTHOR_NAME AUTHOR_EMAIL
*
* This library is free software; you can redistribute it and/or
@@ -27,19 +28,9 @@
G_BEGIN_DECLS
-#define GST_TYPE_PLUGIN_TEMPLATE \
- (gst_plugin_template_get_type())
-#define GST_PLUGIN_TEMPLATE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PLUGIN_TEMPLATE,GstPluginTemplate))
-#define GST_PLUGIN_TEMPLATE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PLUGIN_TEMPLATE,GstPluginTemplateClass))
-#define GST_IS_PLUGIN_TEMPLATE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PLUGIN_TEMPLATE))
-#define GST_IS_PLUGIN_TEMPLATE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PLUGIN_TEMPLATE))
-
-typedef struct _GstPluginTemplate GstPluginTemplate;
-typedef struct _GstPluginTemplateClass GstPluginTemplateClass;
+#define GST_TYPE_PLUGIN_TEMPLATE (gst_plugin_template_get_type())
+G_DECLARE_FINAL_TYPE (GstPluginTemplate, gst_plugin_template,
+ GST, PLUGIN_TEMPLATE, GstBaseTransform)
struct _GstPluginTemplate {
GstBaseTransform element;
@@ -47,12 +38,6 @@ struct _GstPluginTemplate {
gboolean silent;
};
-struct _GstPluginTemplateClass {
- GstBaseTransformClass parent_class;
-};
-
-GType gst_plugin_template_get_type (void);
-
G_END_DECLS
#endif /* __GST_PLUGIN_TEMPLATE_H__ */